* Make paths also match subdirectories
This makes matchers that are generated for strings and paths treat the
path as a prefix instead of as the entire path, allowing a path to also
match its subdirectories and contained files.
This allows patterns like `"src"` to also match by default:
- `src/folder_x`
- `src/folder_x/folder_y`
- etc.
* Turn _isPathPrefix into new matcher and restore previous default path behavior
* Update inDirectory to compare string prefixes instead of path segments
This avoids the extra work of splitting the paths into segments and
comparing them piece by piece.
* proposed change
Co-authored-by: zimbatm <zimbatm@zimbatm.com>