ignore errors while deleting

This commit is contained in:
Tejal Desai 2020-02-28 04:46:15 -08:00
parent 17f808da8a
commit dd5d2e6661
1 changed files with 2 additions and 1 deletions

View File

@ -190,7 +190,8 @@ func DeleteFilesystem() error {
logrus.Info("Deleting filesystem...")
return filepath.Walk(constants.RootDir, func(path string, info os.FileInfo, err error) error {
if err != nil {
return errors.Wrap(err, fmt.Sprintf("walking path %s", path))
// ignore errors when deleting.
return nil
}
if CheckWhitelist(path) {