fix: remove files

This commit is contained in:
Simon Ding
2024-12-11 21:25:28 +08:00
parent 6d127c6d00
commit 3cf48d1f8e
3 changed files with 5 additions and 3 deletions

View File

@@ -72,6 +72,6 @@ func (l *LocalStorage) UploadProgress() float64 {
return 0
}
func (i *LocalStorage) RemoveAll(path string) error {
return os.RemoveAll(path)
func (l *LocalStorage) RemoveAll(path string) error {
return os.RemoveAll(filepath.Join(l.dir, path))
}

View File

@@ -87,5 +87,5 @@ func (w *WebdavStorage) UploadProgress() float64 {
}
func (w *WebdavStorage) RemoveAll(path string) error {
return w.fs.RemoveAll(path)
return w.fs.RemoveAll(filepath.Join(w.dir, path))
}