Walk a directory
API
walk(dir, [options], iterator, callback);
Parameters:
dir
: absolute directoryoptions
: optional, properties:{ recursive: [default is true] }
iterator
: function(path, stats), where stats is an instance of fs.Statscallback
: function(err)
Return false from the iterator to stop walking.
Example
var walk = ; ;
Install
npm install walk-fs