Repository navigation
Report directory scan failures in AWC shorts export - #6664
Conversation
|
Tested a493d0c on Windows 11 (NTFS), Python 3.12.10 (CPU only, no GPU, no game files): pass (the code is correct, but it duplicates #2900, see below) What I ran:
By hand, with a real scan error and no mocks.
Points:
Overlap: #2900 ( AI-assisted (Claude Code). |
|
Tested a493d0c merged with main 8575d36 on Linux/Python 3.12.16: pass Merge was clean (tools/awc_shorts.py only). The PR adds no test, so I exercised the change by hand.
Diff read: |
shayderrr
left a comment
There was a problem hiding this comment.
Summary
tools/awc_shorts.py::_banks passes onerror=scan_failed to os.walk, re-raising directory errors instead of silently treating unreadable folders as empty. main wraps the _banks call and reports awc_shorts: cannot list <path>: <reason> on stderr with exit 2. Previously a permission failure produced an incomplete bank list that looked like a successful but empty export.
Why merge
An unreadable directory under the source tree currently vanishes from results with a zero exit status, so a partial export is indistinguishable from a complete one. Surfacing the exact failing path makes the failure actionable. The change is confined to the directory-scanning path; file discovery order and export logic are unchanged.
Verdict: Approve
Summary
Why mergeAn unreadable directory under the source tree currently vanishes from results with a zero exit status, so a partial export is indistinguishable from a complete one. Surfacing the exact failing path makes the failure actionable. The change is confined to the directory-scanning path; file discovery order and export logic are unchanged. Verdict: Approve |
…6647 and keep lazy AWC dir creation
Stop on a source directory traversal error instead of silently omitting the inaccessible subtree and publishing a partial catalog.
Coordination claim
Testing
13 passed; simulated a permission error and confirmed no output directory was created.
Linux, CPU-only, using synthetic inputs.