Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added excludeHidden flag

  • Loading branch information...
commit c2674863e9547df5f874d4a43c2b1f920b9c31eb 1 parent a2cac16
@refaelos refaelos authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/wrench.js
View
2  lib/wrench.js
@@ -183,7 +183,7 @@ exports.copyDirSyncRecursive = function(sourceDir, newDirLocation, opts) {
var files = fs.readdirSync(sourceDir);
for(var i = 0; i < files.length; i++) {
- if (/^\./.test(files[i])) continue;
+ if (opts.excludeHidden && /^\./.test(files[i])) continue;
var currFile = fs.lstatSync(sourceDir + "/" + files[i]);
Please sign in to comment.
Something went wrong with that request. Please try again.