Mido22 / fs-tools

fs helper utilities (walk, copy, remove, mkdir -p)

Home Page:http://nodeca.github.com/fs-tools/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fs-tools

Build Status

Some file utitiles. See API Documentation for detailed info.

This project is not maintained anymore, because not actual and better alternatives available.

Consider use another packages:


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

Recurcively scan files by regex pattern & apply iterator to each. Iterator applied only to files, not to directories. If given path is a file, iterator will be called against it (if pattern allows it).

walkSync(path, [pattern,] iterator)

Sync version of walk(). Throws exception on error.

findSorted(path, [pattern,] callback)

Recursively collects files by regex pattern (if given, all files otherwise).

remove(path, callback)

Recursively delete directory with all content.

removeSync(path)

Sync version of remove(). Throws exception on error.

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

Recursively make path.

mkdirSync(path, mode = '0755')

Sync version of mkdir(). Throws exception on error.

copy(src, dst, callback)

Copy file.

move(src, dst, callback)

Move file.

tmpdir([template])

Returns unique directory (at the moment of request) pathname.

License

MIT

About

fs helper utilities (walk, copy, remove, mkdir -p)

http://nodeca.github.com/fs-tools/

License:MIT License


Languages

Language:JavaScript 91.6%Language:Makefile 8.4%