fix local storage

This commit is contained in:
Simon Ding
2024-07-24 18:12:11 +08:00
parent daff2cfcfc
commit 8811b89889
2 changed files with 5 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ type LocalStorage struct {
func (l *LocalStorage) Move(src, dest string) error {
targetDir := filepath.Join(l.dir, dest)
os.MkdirAll(targetDir, 0655)
os.MkdirAll(filepath.Dir(targetDir), 0655)
err := filepath.Walk(src, func(path string, info fs.FileInfo, err error) error {
if err != nil {
return err