safe-fs-walk

0.3.4 • Public • Published

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.

/safe-fs-walk/

    Package Sidebar

    Install

    npm i safe-fs-walk

    Weekly Downloads

    9

    Version

    0.3.4

    License

    MIT

    Unpacked Size

    8.22 kB

    Total Files

    5

    Last publish

    Collaborators

    • albanm