A collection of recursive filesystem utilities.
Installation
npm install recur-fs
Usage
var fs = require('recur-fs');
fs.indir('/some/directory', '/some/directory/file.js');
fs.readdir('/some/directory', /\.js$/, null, function(err, files, directories) {
});
fs.readdir('/some/directory', null, /\.css$/, function(err, files, directories) {
});
fs.mkdir('/some/directory', function(err) {
});
fs.mv('/some/file', '/some/destination', function(err, newfilepath) {
});
fs.cp('/some/file', '/some/destination', function(err, newfilepath) {
});
fs.cp('/some/directory/contents/', '/some/destination', function(err, newdestination) {
});
fs.rm('/some/directory/and/children', function(err) {
});