not delete log folder itself
parent
0d8f3b3265
commit
9b12333063
|
@ -223,7 +223,7 @@ func CheckForDeletableLogs() {
|
|||
return err
|
||||
}
|
||||
|
||||
if isEmpty {
|
||||
if isEmpty && path != logFolder {
|
||||
fmt.Printf("Deleting empty directory: %s\n", path)
|
||||
|
||||
if err := os.Remove(path); err != nil {
|
||||
|
|
Loading…
Reference in New Issue