Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix VFS.SubDirs VFS.RAW pattern matching
Consider a folder setup like this: ``` base_dir ├ xxa ├ xxb └ yyc ``` and you want to find subfolders starting with "xx", so you do `VFS.SubDirs("base_dir", "xx*", VFS.RAW)`. The issue was that for `VFS.RAW`, the pattern was applied twice: once during the actual filesystem search, where it correctly worked on the filename only, and then a second time where it was applied to the whole path (e.g. "base_dir/xxa" and not just "xxa"), so if the pattern didn't happen to also match the initial folders, nothing would be returned (although, most people seem to put a "*" wildcard as the pattern, so it wasn't so bad since it does match the path). Remove the second search since it is both redundant and incorrect.
- Loading branch information