fix (fs): recursive removal in local and tmp backend

This commit is contained in:
Mickael Kerjean
2022-11-03 00:12:09 +11:00
parent bf2bca4cbb
commit 98ef1d64e7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ func (this Local) Mkdir(path string) error {
}
func (this Local) Rm(path string) error {
return SafeOsRemove(path)
return SafeOsRemoveAll(path)
}
func (this Local) Mv(from, to string) error {
+1 -1
View File
@@ -114,7 +114,7 @@ func (this TmpStorage) Rm(path string) error {
if err := this.VerifyPath(path); err != nil {
return err
}
return SafeOsRemove(path)
return SafeOsRemoveAll(path)
}
func (this TmpStorage) Mv(from, to string) error {