Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Can't make paths working with recursive pattern and file mask #4396

Open
ghost opened this issue Sep 11, 2022 · 4 comments
Open

Can't make paths working with recursive pattern and file mask #4396

ghost opened this issue Sep 11, 2022 · 4 comments

Comments

@ghost
Copy link

ghost commented Sep 11, 2022

Hi, I can't get paths working with file mask and recursive search.
In the README there is an example

// or multiple files by path to match against "fnmatch()"
__DIR__ . '/packages/*/src/Command',

so I enhance this example with file mask

__DIR__ . '/src/MyBundle/*/*Interface.php',

but it finds only first level Interfaces. Any help?

@ghost
Copy link
Author

ghost commented Sep 11, 2022

I can't find information that fnmatch does not support recursive search (I can't find that it supports as well)

@ghost
Copy link
Author

ghost commented Sep 11, 2022

@TomasVotruba could you give me a hand?

@ghost
Copy link
Author

ghost commented Sep 17, 2022

Any response?

@TomasVotruba
Copy link
Member

Hi, this would require a reproducer repository, as there could be type in the path.
Also, mask usually don't work well with absolute paths. Use either absolute path or just the mask.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant