Fix: permission error
This commit is contained in:
parent
861ba77b04
commit
331931e539
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue