Skip to content

Instantly share code, notes, and snippets.

@Rich-Harris
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rich-Harris/a520b339fe3cad829b15 to your computer and use it in GitHub Desktop.
Save Rich-Harris/a520b339fe3cad829b15 to your computer and use it in GitHub Desktop.
Gobble copy transform
// warning: i haven't tested this! it's using
// https://www.npmjs.org/package/fs-extra
module.exports = function copy ( inputdir, outputdir, options, callback, errback ) {
var fs = require( 'fs-extra' );
fs.copy( inputdir, outputdir, function ( err ) {
if ( err ) {
errback( err );
} else {
callback();
}
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment