promise-walker
v0.1.0
Published
Promise-based error-tolerant directory walker
Readme
promise-walker
Reads directory and tolerating possible
EBUSY,EPERM,EACCESerrors
Install
npm i promise-walker --saveExample
const walk = require('promise-walker');
walk('./path').then(function(items) {
// items -> [
// ...
// {
// path: './path/foo'
// stat: fs.Stat | null,
// error: null | Error('EBUSY') | Error('EPERM') | Error('EACCES')
// }
// ...
// ];
});API
walk(path, [options]); // -> Promiseoptions:
- concurrency:
Number: Default: 16. Limits concurrently inspected files;
License
MIT © Yury Solovyov
