Call a function on each file in a filesystem tree
var walk = ;;
npm install --save fs-walk-breadth-first
walk(directory, iterator, callback)
Traverses all files and directories beneath
directory in breadth-first order. The
iterator function is called on each file or directory, and the
callback function is called after all files and directories have been visited.
directory- The directory to traverse.
iterator(filename, stats, callback)- A function to apply to each file or directory found.
statsis an instance of fs.Stats.
callback(err)should be called when the iterator is finished
callback(err)- A function that is called when all the files and directories have been visited, or when an error occurs.
Code of Conduct
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.