symplify icon indicating copy to clipboard operation
symplify copied to clipboard

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

Open ghost opened this issue 3 years ago • 4 comments

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 avatar Sep 11 '22 08:09 ghost

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

javaDeveloperKid avatar Sep 11 '22 08:09 javaDeveloperKid

@TomasVotruba could you give me a hand?

javaDeveloperKid avatar Sep 11 '22 09:09 javaDeveloperKid

Any response?

javaDeveloperKid avatar Sep 17 '22 19:09 javaDeveloperKid

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.

TomasVotruba avatar Jan 03 '23 16:01 TomasVotruba