0.1.0 • Published 8 years ago
promise-walker v0.1.0
promise-walker
Reads directory and tolerating possible
EBUSY
,EPERM
,EACCES
errors
Install
npm i promise-walker --save
Example
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]); // -> Promise
options
:
- concurrency:
Number
: Default: 16. Limits concurrently inspected files;
License
MIT © Yury Solovyov
0.1.0
8 years ago