Skip to content

Commit

Permalink
Fix filemanager.MkdirAll
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Dec 21, 2023
1 parent c223a30 commit 9cc051c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions service/filemanager/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ func (m *defaultManager) Mkdir(path string, perm os.FileMode) error {

func (m *defaultManager) MkdirAll(path string, perm os.FileMode) error {
path = m.BasePath(path)
return m.mkdirAll(path, perm)
}

func (m *defaultManager) mkdirAll(path string, perm os.FileMode) error {
dir, err := os.Stat(path)
if err == nil {
if dir.IsDir() {
Expand Down

0 comments on commit 9cc051c

Please sign in to comment.