mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2024-04-21 12:32:08 +00:00
fix (fs): recursive removal in local and tmp backend
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user