ignore errors while deleting
This commit is contained in:
parent
17f808da8a
commit
dd5d2e6661
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue