Skip to content

Commit

Permalink
ignore errors while deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
tejal29 committed Feb 28, 2020
1 parent 17f808d commit dd5d2e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/util/fs_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dd5d2e6

Please sign in to comment.