mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
If directory already removed, return nil and move on
This commit is contained in:
@@ -34,6 +34,9 @@ func RemoveAllDirs(path string) error {
|
||||
}
|
||||
if fl.Mode().IsDir() {
|
||||
if err := os.Remove(fp); err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user