fsep
Version:
Fsep is a library that promisifies the native node FS operation and brings extras into the mix.
20 lines (15 loc) • 334 B
JavaScript
;
const Fsep = require('../index');
const path = __dirname;
const options = {
relative: false,
ignoreDot: true,
filters: ['node_modules']
};
Promise.resolve().then(function () {
return Fsep.walk(path, options);
}).then(function (files) {
console.log(files);
}).catch(function (error) {
console.error(error);
});