Merge 5c0831ef43 into 31cf44b999
This commit is contained in:
commit
35514fe732
1 changed files with 5 additions and 3 deletions
|
|
@ -199,6 +199,8 @@ exports.copyDirSyncRecursive = function(sourceDir, newDirLocation, opts) {
|
|||
|
||||
var fCopyFile = function(srcFile, destFile) {
|
||||
if(typeof opts !== 'undefined' && opts.preserveFiles && fs.existsSync(destFile)) return;
|
||||
// if opts.ignoreFiles is true every file will be ignored
|
||||
if(typeof opts !== 'undefined' && opts.ignoreFiles) return;
|
||||
|
||||
var contents = fs.readFileSync(srcFile);
|
||||
fs.writeFileSync(destFile, contents);
|
||||
|
|
|
|||
Reference in a new issue