co-fs plus, supports fs.walk
fs.mkdirp
fs.readdir
fs.rimraf
.
$ npm install co-fs-plus
var files = yield fs.walk('/opt/boxen');
var files = yield fs.walk('.', {
followSymlinks: true
});
var files = yield fs.readdir('/opt/boxen', { // Recursively, excudes hidden files.
filterFilename: function (filename) {
return filename[0] != '.';
}
}, []);
var res = yield fs.mkdirp('web/js/jquery');
yield fs.rimraf('web/js/jquery');
fs.walk(path, [options], [arr])
fs.readdir(path, [options], [arr])
fs.mkdirp(path, [mode])
fs.rimraf(path, [mode])
, based on rimraf
MIT