Skip to content

Another file system walker for node forked from node-klaw with safety in mind. This walker will not stop on system errors.

License

Notifications You must be signed in to change notification settings

dawizz/safe-fs-walk

Repository files navigation

safe-fs-walk

Another file system walker for node forked from node-klaw with safety in mind. This walker will not stop on system errors.

npm Package build status windows build status

Install:

npm install safe-fs-walk

See the original node-klaw project for documentation of usage and options. Simply replace require('klaw') with require('safe-fs-walk')

The main difference is in error management : this crawler will do its best to prevent errors in your program due to permissions or other system errors and will just keep walking.

Additional options:

  • log (default=console.error): a function that will be used to log errors. Pass null to be silent (errors will neither be emitted nor logged).
  • onlyReadable (default=true): do not emit paths of files that can not be read.

About

Another file system walker for node forked from node-klaw with safety in mind. This walker will not stop on system errors.

Resources

License

Stars

Watchers

Forks

Packages

No packages published