diff --git a/pkg/filesystem/driver/local/handler.go b/pkg/filesystem/driver/local/handler.go index e7737734d7f487a1b14b519a176b33eafee06597..53147a98423172d0a0061d894c9ae95456a42057 100644 --- a/pkg/filesystem/driver/local/handler.go +++ b/pkg/filesystem/driver/local/handler.go @@ -56,7 +56,7 @@ func (handler Driver) Put(ctx context.Context, file io.ReadCloser, dst string, s // 如果目标目录不存在,创建 basePath := filepath.Dir(dst) if !util.Exists(basePath) { - err := os.MkdirAll(basePath, 0644) + err := os.MkdirAll(basePath, 0744) if err != nil { util.Log().Warning("无法创建目录,%s", err) return err