Modify: use 644 permission when creating a new physical directory (#274)
This commit is contained in:
parent
8c7d075484
commit
e07b09186d
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ func (handler Driver) Put(ctx context.Context, file io.ReadCloser, dst string, s
|
||||||
// 如果目标目录不存在,创建
|
// 如果目标目录不存在,创建
|
||||||
basePath := filepath.Dir(dst)
|
basePath := filepath.Dir(dst)
|
||||||
if !util.Exists(basePath) {
|
if !util.Exists(basePath) {
|
||||||
err := os.MkdirAll(basePath, 0700)
|
err := os.MkdirAll(basePath, 0644)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
util.Log().Warning("无法创建目录,%s", err)
|
util.Log().Warning("无法创建目录,%s", err)
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Add table
Reference in a new issue