Closed GuyMograbi closed 8 years ago
Yes, there use to, but I erroneously removed it: https://github.com/jprichardson/node-klaw/commit/35fb04a6855e820d0624ba27d0cec475b49b4696 I'd accept a PR to bring it back, but if you do, please add some tests.
Wondering if this should be reopened given the issue with filter
reported in https://github.com/jprichardson/node-klaw/issues/17
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
to output only
another-file.txt
andsome-dir
is skipped.. however, I seesome-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.