mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-01-23 14:32:14 +08:00
change log folder permission
This commit is contained in:
parent
84d7ec923f
commit
9f9fb6a320
@ -40,7 +40,7 @@ func (f *FileRecorder) Append(item *FileRecordItem) error {
|
||||
savePath := f.Path
|
||||
folder := filepath.Dir(savePath)
|
||||
if b, err := utils.PathExists(folder); err == nil && !b {
|
||||
os.MkdirAll(folder, os.ModePerm)
|
||||
os.MkdirAll(folder, 0755)
|
||||
}
|
||||
|
||||
var fp *os.File
|
||||
|
Loading…
Reference in New Issue
Block a user