This commit is contained in:
nuknal
2024-10-11 11:25:16 +08:00
parent 839a8648f5
commit 2b8d4f933d
3 changed files with 5 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ func NewExtractor(params *Params) *Extractor {
if err := os.MkdirAll(params.TempPath, 0755); err != nil {
panic(err)
}
if err := os.MkdirAll(filepath.Base(params.LogFile), 0755); err != nil {
if err := os.MkdirAll(filepath.Dir(params.LogFile), 0755); err != nil {
panic(err)
}
return &Extractor{params: params, Clean: true, report: &Report{SegmentDirRoot: params.OutputPath}}