If directory already removed, return nil and move on

This commit is contained in:
Harshavardhana 2015-10-17 00:13:46 -07:00
parent c24235df8b
commit 2ec679a089

View File

@ -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
}
}