Copy the contents of one directory to another, and leave behind specified exclusions.
Install
npm install directory-copy
Usage
var copy =
copy(options, cb)
options
is an options hashsrc
the source directory (required)dest
the destination directory (required)excludes
an array of RegExp objects to.test()
filenames against. If the test returns true, the file won't be copied.
cb
is the callbackfunction (err) {}
(err
is null if ok)
copy()
returns an event emitter that emits 'log' events.
Eg: