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

example of 'skip directories' does not actually skip the directories #7

Closed
GuyMograbi opened this issue Jun 7, 2016 · 2 comments · Fixed by #8
Closed

example of 'skip directories' does not actually skip the directories #7

GuyMograbi opened this issue Jun 7, 2016 · 2 comments · Fixed by #8

Comments

@GuyMograbi
Copy link

GuyMograbi commented Jun 7, 2016

I am looking for a way to skip directories.

meaning - do not walk a specific directory's files or subfolders

The example in the main page does not skip folder, it simply filters out files.
I'd expect it to only give the files under the current folder.

so if I have

+ root 
+------- some-dir 
                 +----------some-file.txt
+------ another-file.txt

to output only another-file.txt and some-dir is skipped..
however, I see some-file.txt is also added to items.

is there a way to actually skip a directory?

I tried not calling next(), but that seems to stop the entire process.

@jprichardson
Copy link
Owner

Yes, there use to, but I erroneously removed it: 35fb04a I'd accept a PR to bring it back, but if you do, please add some tests.

@ericbiewener
Copy link

Wondering if this should be reopened given the issue with filter reported in #17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants