Globbing doesn't do recursion
See original GitHub issueTo get recursion, I have to add an additional /**
per directory level. So for a directory nested four levels in, I have to target **/**/**/**
. Is this expected behavior? I’m on Windows, but I do everything in the bash - globbing always works as expected.
Issue Analytics
- State:
- Created 8 years ago
- Comments:16 (7 by maintainers)
Top Results From Across the Web
Recursive glob? - Unix & Linux Stack Exchange
Normally when you use ** , it works similar to * , but it's recurses all the directories recursively (like a loop). To...
Read more >Why isn't my glob pattern recursing all folders?
This could be caused by various things, but one of the most common reasons that you might not see your globbing pattern recurse...
Read more >Why can't ** be used (for recursive globbing) in a npm ...
So when it's performed by the npm it only counts files in dir0 and dir1 directories, interpreting **/*.js as in all 1 depth...
Read more >recursive globbing: g`a/**/b` doesn't match a/b · Issue #4538 - GitHub
I can't tell if it was only intended to be used at the start of a glob rather than in the middle, which...
Read more >Rdir: search recursive for files with a given name pattern
I am looking for a function that lists all files in all sub-directories according to a given search pattern. I can imagine that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is the output:
ok, so basic recursion is working… using this
one/two/three
folder structure can you send me a command which demonstrates it failing? Cheers!