Skip to content

Commit

Permalink
fix: mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-ding committed Jul 14, 2024
1 parent f4f2e9e commit 1edbd8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/storage/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type LocalStorage struct {

func (l *LocalStorage) Move(src, dest string) error {
targetDir := filepath.Join(l.dir, dest)
os.MkdirAll(targetDir, 0655)
err := filepath.Walk(src, func(path string, info fs.FileInfo, err error) error {
destName := filepath.Join(targetDir, info.Name())
srcName := filepath.Join(src, info.Name())
Expand Down

0 comments on commit 1edbd8f

Please sign in to comment.