Skip excluded paths before looking at their errors (closes #16) #19

Merged
clawbot merged 1 commits from exclude-before-error into next 2026-10-06 07:44:02 +02:00
1 Commits
Author SHA1 Message Date
clawbot d4eafcf3e1 Skip excluded paths before looking at their errors (closes #16)
check / check (push) Successful in 2m36s
filepath.Walk hands its callback the error for a path it could not
read, such as a directory it cannot list. Both callbacks, in
walkAndProcess and countFiles, returned that error before they checked
the exclusions, so a directory that --exclude or --exclude-dotfiles
excluded still failed the run when it could not be listed. Given an
error, each callback now checks the exclusions first and skips an
excluded path. The new test excludes a directory that cannot be listed
and runs sum add and check over its parent.

Model: opus-5-5
2026-10-06 05:31:03 +00:00