mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-11 13:17:07 +00:00
find and du write what they already collected and only then return nonzero, so the guards added in ce1c5b5fe were throwing away the evidence the index exists to report. One vanished entry mid-walk blanked the whole listing: '0 file(s)', no paths, on a tree that was mostly readable. The rescue tree is indexed while a failed run is still tearing down, so that is the normal case, not the corner one. Stop resetting LISTING, fall back on SIZE only when du produced nothing, and turn the early exit into a warning so the partial listing still prints. The existing test could not see this: its stub find emitted nothing, so it only covered a total failure. The new case stubs a find that prints rows and then fails, and it fails against ce1c5b5fe. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>