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

Support recursive glob '**' #55

Open
ileitch opened this issue Jul 10, 2018 · 1 comment
Open

Support recursive glob '**' #55

ileitch opened this issue Jul 10, 2018 · 1 comment

Comments

@ileitch
Copy link

ileitch commented Jul 10, 2018

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 🤘🏼

@kylef
Copy link
Owner

kylef commented Jul 10, 2018

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.

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

2 participants