add comments

This commit is contained in:
Zeecka
2025-12-30 17:10:14 +01:00
parent 474ad62085
commit 12382fee6a
+2
View File
@@ -45,6 +45,8 @@ def analyze_binwalk(input_img: Path, output_dir: Path) -> None:
if extracted_dir.exists(): if extracted_dir.exists():
shutil.rmtree(extracted_dir) shutil.rmtree(extracted_dir)
# Only report error if stderr exists AND extraction failed.
# If zip_exist is True, binwalk worked (despite warnings), so we proceed.
if len(stderr) > 0 and not zip_exist: if len(stderr) > 0 and not zip_exist:
err: dict[str, dict[str, Any]] = { err: dict[str, dict[str, Any]] = {
"binwalk": { "binwalk": {