PathKit icon indicating copy to clipboard operation
PathKit copied to clipboard

Support recursive glob '**'

Open ileitch opened this issue 6 years ago • 1 comments

It'd be awesome if you could support a recursive glob, e.g /some/path/**/*.swift which would match arbitrary nesting.

Thanks for PathKit, love it 🤘🏼

ileitch avatar Jul 10 '18 15:07 ileitch

The underlying system glob(3) doesn't support any recursive glob so this would have to be implemented entirely in PathKit. You might be better expressing your glob using recursiveChildren.filter { $0.extension == "swift" } or similar.

However, If you'd like to have recursive option for glob please file a pull request including test cases.

kylef avatar Jul 10 '18 16:07 kylef