mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-01-23 22:42:15 +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
|
savePath := f.Path
|
||||||
folder := filepath.Dir(savePath)
|
folder := filepath.Dir(savePath)
|
||||||
if b, err := utils.PathExists(folder); err == nil && !b {
|
if b, err := utils.PathExists(folder); err == nil && !b {
|
||||||
os.MkdirAll(folder, os.ModePerm)
|
os.MkdirAll(folder, 0755)
|
||||||
}
|
}
|
||||||
|
|
||||||
var fp *os.File
|
var fp *os.File
|
||||||
|
Loading…
Reference in New Issue
Block a user