Permalink
Browse files

added excludeHidden flag

  • Loading branch information...
1 parent a2cac16 commit c2674863e9547df5f874d4a43c2b1f920b9c31eb @refaelos refaelos committed Oct 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/wrench.js
View
@@ -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]);

0 comments on commit c267486

Please sign in to comment.