GitXplorerGitXplorer
T

fs-tools

public
20 stars
4 forks
5 issues

Commits

List of commits on branch master.
Verified
bfc99710fcc7359f52370220d9e489609342dc64

chore: Replace vows with tape (#31)

TTrott committed 6 years ago
Unverified
41c853f5e22e866c1dbe114fb8879e373eb6e937

update dependencies

TTrott committed 6 years ago
Unverified
ec67fa02cd2f527fd4319c165fdbdfbfbb0abe1b

remove unnecessary check

TTrott committed 6 years ago
Unverified
05c239ef775e0f58ad9d300b8a090f7781ffe258

update tests etc. for robustness

TTrott committed 6 years ago
Unverified
8255839ec5184ae07a0d3e17e83139a13cbda97f

0.5.0

TTrott committed 6 years ago
Unverified
35f4457719a6c7d408097ec714129990c00db8af

Merge branch 'master' of github.com:Trott/fs-tools

TTrott committed 6 years ago

README

The README file for this repository.

fs-tools

Build Status

Some file utilities. See API Documentation for detailed info.

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

Consider using another package:


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

Recursively 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