0.0.0 • Published 6 years ago

pump-dir v0.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

pump-dir

build status AppVeyor Build Status


Copy entire directories, safely. All work is done by pump and tar-fs. Thanks 2 mafintosh.


Get it!

npm install --save pump-dir

Usage

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

MIT