co-fs-plus
co-fs plus, supports `fs.walk` `fs.mkdirp` `fs.rimraf` etc.
Last updated 4 years ago by fundon .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install co-fs-plus 
SYNC missed versions from official npm registry.

co-fs-plus Build Status

co-fs plus, supports fs.walk fs.mkdirp fs.readdir fs.rimraf.

Installation

$ npm install co-fs-plus

Example

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');

APIs

fs.walk(path, [options], [arr])

fs.readdir(path, [options], [arr])

fs.mkdirp(path, [mode])

fs.rimraf(path, [mode]), based on rimraf

License

MIT

Maintainers (1)
Downloads
Today 0
This Week 8
This Month 13
Last Day 8
Last Week 1
Last Month 9
Dependencies (3)
Dev Dependencies (2)

Copyright 2014 - 2017 © taobao.org |