Skip to content

path/filepath: Missing support of matching directories recursively with '**' for Glob() and Match() #10766

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

Closed
cybertk opened this issue May 10, 2015 · 1 comment

Comments

@cybertk
Copy link

cybertk commented May 10, 2015

Like glob in Ruby, it support matching directories recursively with **.

rbfiles = File.join("**", "*.rb")
Dir.glob(rbfiles)                   #=> ["main.rb",
                                    #    "lib/song.rb",
                                    #    "lib/song/karaoke.rb"]
@bradfitz
Copy link
Contributor

Sorry, the behavior of filepath walking is frozen.

You can find things like this outside of the standard library.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants