files icon indicating copy to clipboard operation
files copied to clipboard

Glob based on PathMatcherInterface

Open samdark opened this issue 4 years ago • 1 comments

$files = FileHelper::glob((new PathMatcher()->only('/var/www/yiiframework.com/**.jpg')));
  1. No need to specify directory such as in findFiles().
  2. Should support absolute paths only.
  3. Should determine non-dynamic part of the pattern /var/www/yiiframework.com/ and start matching from there.

samdark avatar Feb 11 '21 08:02 samdark

In order for it to be implemented additional interface that can return the base directory is needed.

samdark avatar Feb 11 '21 08:02 samdark