fix(rm): remove dir even if not empty

This commit is contained in:
DataHearth 2022-05-23 09:35:35 +02:00
parent f526bf1f5d
commit 1cfd84b8cf
No known key found for this signature in database
GPG Key ID: E88FD356ACC5F3C4
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ func (e *Items) CleanUp(removedLines []string) error {
return err
}
if err := os.Remove(path); err != nil {
if err := os.RemoveAll(path); err != nil {
return fmt.Errorf("failed to remove item %s: %v", l, err)
}
}