Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

Commit

Permalink
not copying hidden files/folders
Browse files Browse the repository at this point in the history
  • Loading branch information
refaelos committed Oct 15, 2012
1 parent d1ffccb commit a2cac16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/wrench.js
Expand Up @@ -183,6 +183,8 @@ exports.copyDirSyncRecursive = function(sourceDir, newDirLocation, opts) {
var files = fs.readdirSync(sourceDir);

for(var i = 0; i < files.length; i++) {
if (/^\./.test(files[i])) continue;

var currFile = fs.lstatSync(sourceDir + "/" + files[i]);

if(currFile.isDirectory()) {
Expand Down

0 comments on commit a2cac16

Please sign in to comment.