A simple directory tree walker.
A nodejs directory walker. Broadcasts events for various file types as well as a generic "entry" event for all types and provides the ability to prune directory trees. This shows the entire API; everything is optional:
You specify a root directory to walk and optionally specify a function to prune
sub-directory trees via the
filterDir function. The Walker exposes a number
of events, broadcasting various file type events a generic error event and
finally the event to signal the end of the process.