diff --git a/internal/log/file_record.go b/internal/log/file_record.go index 798afcb..1747eee 100644 --- a/internal/log/file_record.go +++ b/internal/log/file_record.go @@ -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