Skip to content

chiefbiiko/pump-dir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

better copy-dir

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published