change log folder permission

This commit is contained in:
xiaoyaofenfen 2022-12-21 15:29:15 +08:00
parent 84d7ec923f
commit 9f9fb6a320

View File

@ -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