-
Notifications
You must be signed in to change notification settings - Fork 5
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
includeHidden=false
doesn't prevent recursion into hidden directories
#7
Comments
You're right, the source is here: https://github.com/citycide/glob/blob/ca0513dca6896972bf5277b4ec94202f51ba49a9/src/glob.nim#L314 The folder itself isn't yielded but when recursing there isn't another check before adding that directory to the stack. Should be a simple fix (~ |
unfortunately my local fix hit that bug: nim-lang/Nim#8225 |
Thanks for the update. This is really the only untested thing right now as I wasn't sure how to go about testing for hidden files. Should get some tests in there once we get this figured out. |
includeHidden=false
doesn't workincludeHidden=false
doesn't prevent recursion into hidden directories
Fix is pushed on our end, just need nim-lang/Nim#8315 to be merged and released. |
Closing since we've fixed this in |
nim-lang/Nim#8315 was finally merged, fixing this for good :) |
git clone https://github.com/AndreiRegiani/INim
cd INim
nim c -o:app -r /tmp/t31_glob.nim
/tmp/t31_glob.nim:
prints lines such as:
which should've been filtered out by
includeHidden=false
perhaps you're only filtering out hidden files, not hidden folders?
The text was updated successfully, but these errors were encountered: