The directory matching does not work as expected when
the exclusive (exclude) flag is set in conjunction
with searching subdirectories.
As an example, I defined a pattern:
to match only files which occur in directories of which
a component's name is 'src'.
This pattern fails to find any files when the '\src\'
directory is not an immediate descendent of the compare
directory. I assume this is because a directory search
is performed with the pattern '\src\'
Instead, all subdirectories should always be
enumerated, and then the search pattern(s) applied to
each of the found directories. This would allow the
pattern to be a substring of the pathname.
Submitter: Marty Klos (email@example.com)
Log in to post a comment.