xfs
xfs is a module extends builded-in fs module, let file manipulate easily

xfs extends the following functions :
async functions
- mkdir(path,cb) make directories and their contents recursively
- rmdir(path,cb) remove directories and their contents recursively
- rename(src,dest,cb) rename file across two different devices
- walk(dir, expr, each, done); walk through dir, each file will pass to each() , when walk done, done() called
fs.walk(dir, /\.js$/, function (err, file, done) {
done();
}, function (err) {
});
sync functions
- rm(path)
- mkdir(path)
- save(path, data[, options|encoding])
var sync = xfs.sync();
sync.rm(path);
sync.mkdir(path);
sync.save(path, data, option);
sync.save(path, data, encoding);
... to be contine
License
MIT