0.0.0 • Published 8 years ago
pump-dir v0.0.0
pump-dir
Copy entire directories, safely. All work is done by pump and tar-fs. Thanks 2 mafintosh.
Get it!
npm install --save pump-dirUsage
var pumpDir = require('pump-dir')
pumpDir('./node_modules', 'clone_modules', function (err) {
if (err) return console.error(err)
console.log('cloned node_modules')
})API
pumpDir(from, to[, opts], callback)
Copy a directory. opts.ignore can be a predicate method by which all entries will be filtered. Must return true for files that shall be excluded, sig opts.ignore(name, headers), see tar-fs. Calling back like callback(err).
License
0.0.0
8 years ago