mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Fix: permission error
This commit is contained in:
@@ -18,7 +18,7 @@ func (handler Handler) Put(ctx context.Context, file io.ReadCloser, dst string)
|
|||||||
// 如果目标目录不存在,创建
|
// 如果目标目录不存在,创建
|
||||||
basePath := filepath.Dir(dst)
|
basePath := filepath.Dir(dst)
|
||||||
if !util.Exists(basePath) {
|
if !util.Exists(basePath) {
|
||||||
err := os.MkdirAll(basePath, 0666)
|
err := os.MkdirAll(basePath, 0700)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user