.
This commit is contained in:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user