From 331931e539a6791ba314b5f754f6da64652e77c3 Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Sun, 17 Nov 2019 20:30:25 +0800 Subject: [PATCH] Fix: permission error --- pkg/filesystem/local/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/filesystem/local/handler.go b/pkg/filesystem/local/handler.go index 8d1dbcb..148a16c 100644 --- a/pkg/filesystem/local/handler.go +++ b/pkg/filesystem/local/handler.go @@ -18,7 +18,7 @@ func (handler Handler) Put(ctx context.Context, file io.ReadCloser, dst string) // 如果目标目录不存在,创建 basePath := filepath.Dir(dst) if !util.Exists(basePath) { - err := os.MkdirAll(basePath, 0666) + err := os.MkdirAll(basePath, 0700) if err != nil { return err }