mirror of
https://github.com/minio/minio.git
synced 2025-01-12 07:23:23 -05:00
Merge pull request #916 from harshavardhana/fs-utils
If directory already removed, return nil and move on
This commit is contained in:
commit
c2859c1f7d
@ -34,6 +34,9 @@ func RemoveAllDirs(path string) error {
|
|||||||
}
|
}
|
||||||
if fl.Mode().IsDir() {
|
if fl.Mode().IsDir() {
|
||||||
if err := os.Remove(fp); err != nil {
|
if err := os.Remove(fp); err != nil {
|
||||||
|
if os.IsNotExist(err) {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user