Skip to content

Commit

Permalink
[fix] fs process file mode bug
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Nov 15, 2022
1 parent 319bc66 commit 75d5f32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions studio/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func setRouter(router *gin.Engine) {
return
}

err := dfs.Mkdir(name, int(os.ModePerm))
err := dfs.Mkdir(name, uint32(os.ModePerm))
if err != nil {
throw(c, 500, err.Error())
return
Expand All @@ -128,7 +128,7 @@ func setRouter(router *gin.Engine) {
return
}

err := dfs.MkdirAll(name, int(os.ModePerm))
err := dfs.MkdirAll(name, uint32(os.ModePerm))
if err != nil {
throw(c, 500, err.Error())
return
Expand Down

0 comments on commit 75d5f32

Please sign in to comment.