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 double star (**) glob syntax #105

Closed
SleepWalker opened this issue Aug 10, 2021 · 2 comments · Fixed by #392
Closed

Support double star (**) glob syntax #105

SleepWalker opened this issue Aug 10, 2021 · 2 comments · Fixed by #392

Comments

@SleepWalker
Copy link

Hello,

it turns out that default golang Glob function does not support common globstar (**) syntax. This syntax allows matching of files in subdirs too.

Here are some useful links:

@harvzor
Copy link

harvzor commented Feb 11, 2022

I've got this file structure:

root@903a83c00b08:/app/docs# tree
.
|-- docs
     |-- foo.md
     |-- bar.md
     |-- baz
         |-- qux.md

I ran with the file globbing pattern of -f "docs/**/*.md" in the base folder and it only found qux.md.

So it seems that this tool does support the ** syntax but that it won't find files in the docs folder, but only subdirs of of docs, but probably not subdirds of those subdirs 😄

@oradwell
Copy link
Contributor

I've created #392 to fix this. anyone still interested in it?

@mrueg mrueg closed this as completed in #392 Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants