If directory already removed, return nil and move on

master
Harshavardhana 9 years ago
parent c24235df8b
commit 2ec679a089
  1. 3
      pkg/fs/fs-utils.go

@ -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
}
}
Loading…
Cancel
Save