Closed wattsbn closed 9 years ago
It would be really nice if there was a way to stop the traversal of just a branch instead of the entire tree.
For example if you didn't want to process any files or subdirectories of 'foo'
emitter.on('directory', function(dir, stat, stop) { if (path.dirname(path) === 'foo') { stop(); } ... });
i think so too. thats better than the ignore path's strategy
fixed in 0.0.9. added .ignore(path) to the emitter which can be called both in the path event listener and before.
It would be really nice if there was a way to stop the traversal of just a branch instead of the entire tree.
For example if you didn't want to process any files or subdirectories of 'foo'