List all folder and files from a entrypoint
npm install --save git+https://git@github.com/anzerr/fs.find.git
npm install --save @anzerr/fs.findconst find = require('fs.find');
find('./', {
filter: (path) => true, // filter folder that should not be gone down
callback: (path, isDirectory) => {
console.log(path, isDirectory);
},
max: 2
}).then(() => {
console.log('done');
});