Closed
Description
I've found myself needing to search through groups of files by their absolute pathname versus just their filename (/home/jdoe/foo/bar/baz.txt
versus baz.txt
), in which case the Finder#name() and Finder#notName() filtering methods are not sufficient.
I'd like to suggest/discuss (and can put together a PR for) adding a PathFilterIterator class, along with Finder#path() and Finder#notPath() methods to accomplish this:
# ex: would find /home/jdoe/foo/bar.txt but not /home/jdoe/bar/baz.txt
$finder->files()->path('foo/*.txt')->notPath('bar/*.txt')->in('/home/jdoe')