Background
PR #279 solved Issue #275 by updating _should_include so recursive (**) patterns finally work.
During review two follow-ups were identified:
- Exclude logic gap –
_should_exclude still has a TODO about handling **. Understand if this is needed.
- Missing test coverage – There are no unit tests that exercise the full matrix of recursive vs. non-recursive patterns, directory-depth mismatches, or patterns ending in
/*.
Leaving these gaps risks regressions and unexpected traversal behaviour.
Tasks