files
files copied to clipboard
Glob based on PathMatcherInterface
$files = FileHelper::glob((new PathMatcher()->only('/var/www/yiiframework.com/**.jpg')));
- No need to specify directory such as in
findFiles(). - Should support absolute paths only.
- Should determine non-dynamic part of the pattern
/var/www/yiiframework.com/and start matching from there.
In order for it to be implemented additional interface that can return the base directory is needed.