refactor(clew): create extracted directory on demand

This commit is contained in:
2026-09-07 14:43:10 -04:00
parent 1d8cf09b34
commit 5f1b29858c

View File

@@ -64,10 +64,7 @@ def prepare_output(output_root: Path, overwrite: bool) -> Path:
for name in MANAGED_DIRS:
shutil.rmtree(output_root / name, ignore_errors=True)
extracted_dir = output_root / "extracted"
extracted_dir.mkdir(parents=True, exist_ok=True)
return extracted_dir
return output_root / "extracted"
def relative_to(root: Path, path: Path) -> Path: