Last active
August 29, 2015 14:06
-
-
Save Rich-Harris/a520b339fe3cad829b15 to your computer and use it in GitHub Desktop.
Gobble copy transform
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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