Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glob based on PathMatcherInterface #46

Open
samdark opened this issue Feb 11, 2021 · 1 comment
Open

Glob based on PathMatcherInterface #46

samdark opened this issue Feb 11, 2021 · 1 comment

Comments

@samdark
Copy link
Member

samdark commented Feb 11, 2021

$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 samdark added the type:feature New feature label Feb 11, 2021
@samdark
Copy link
Member Author

samdark commented Feb 11, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant