From 423f260aba3e4c2a798359ffc7ff05048461184d Mon Sep 17 00:00:00 2001 From: Ed_ Date: Fri, 26 Jun 2026 23:06:42 -0400 Subject: [PATCH] chore(scripts): organize_reports emits subdirs-skipped list Self-documents that subdirectories (existing week folders + category folders like code_path_audit/ and license_cve_audit/) are skipped non-recursively. Surfaces in both human-readable and --json output. --- scripts/organize_reports.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/organize_reports.py b/scripts/organize_reports.py index b089766c..b8db87f3 100644 --- a/scripts/organize_reports.py +++ b/scripts/organize_reports.py @@ -82,6 +82,7 @@ def main() -> int: print(f"error: {reports} is not a directory", file=sys.stderr) return 1 + subdirs_skipped = [e.name for e in sorted(reports.iterdir(), key=lambda e: e.name) if e.is_dir()] current_monday = _week_monday(date.today()) moves: list[dict] = [] skipped_current_week: list[str] = [] @@ -115,6 +116,7 @@ def main() -> int: "skipped_current_week": skipped_current_week, "skipped_no_date": skipped_no_date, "skipped_already_in_place": skipped_already_in_place, + "subdirs_skipped": subdirs_skipped, }, indent=2)) return 0 @@ -141,6 +143,10 @@ def main() -> int: print(f"\nSkipped (no parseable date): {len(skipped_no_date)}") for n in skipped_no_date: print(f" - {n}") + if subdirs_skipped: + print(f"\nSubdirectories skipped (non-recursive; left untouched): {len(subdirs_skipped)}") + for n in subdirs_skipped: + print(f" - {n}") if args.apply and moves: for mv in moves: