Skip to content

Commit 2804b67

Browse files
authored
Merge pull request #1248 from dennisliuu/fix/permission-error
fix: ensure output directories are created before extraction
2 parents 4831eee + 5d71754 commit 2804b67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/unblob/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,8 @@ def cli(
384384
else RichConsoleProgressReporter,
385385
)
386386

387+
logger.info("Creating extraction directory", extract_root=extract_root)
388+
extract_root.mkdir(parents=True, exist_ok=True)
387389
logger.info("Start processing file", file=file)
388390
sandbox = Sandbox(config, log_path, report_file)
389391
process_results = sandbox.run(process_file, config, file, report_file)

0 commit comments

Comments
 (0)