diff --git a/pkg/fs/walk.go b/pkg/fs/fs-utils.go similarity index 99% rename from pkg/fs/walk.go rename to pkg/fs/fs-utils.go index 4efe26fca..0d0c188fe 100644 --- a/pkg/fs/walk.go +++ b/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 } }