changed excludeHidden to excludeHiddenUnix b/c the testing for hidden file is only applicable for unix
This commit is contained in:
parent
8097eb52bd
commit
658589c35e
2 changed files with 3 additions and 3 deletions
|
|
@ -183,7 +183,7 @@ exports.copyDirSyncRecursive = function(sourceDir, newDirLocation, opts) {
|
|||
var files = fs.readdirSync(sourceDir);
|
||||
|
||||
for(var i = 0; i < files.length; i++) {
|
||||
if (opts.excludeHidden && /^\./.test(files[i])) continue;
|
||||
if (opts.excludeHiddenUnix && /^\./.test(files[i])) continue;
|
||||
|
||||
var currFile = fs.lstatSync(sourceDir + "/" + files[i]);
|
||||
|
||||
|
|
|
|||
Reference in a new issue