fs helper utilities (walk, copy, remove, mkdir -p)
JavaScript
Pull request Compare This branch is 1 commit ahead, 58 commits behind nodeca:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
support/sandbox-template
test
.gitignore
.jshintignore
.jshintrc
.travis.yml
HISTORY.md
LICENSE
Makefile
README.md
TODO
index.js
package.json

README.md

fs-tools

Build Status

Useful file utitiles. See API Documentation for detailed info.


walk(path, [pattern,] iterator[, callback])

Recurcively scan files by regex pattern & apply iterator to each. Iterator applied only to files, not to directories.

remove(path, callback)

Recursively delete directory with all content.

mkdir(path, mode = '0755', callback)

Recursively make path.

copy(src, dst, callback)

Copy file. Not optimized for big sourses (read all to memory at once).

License

View the LICENSE file (MIT).