new features in copyDirRecursive #55

Closed
refaelos wants to merge 7 commits from master into master
Showing only changes of commit 58380677c2 - Show all commits

View file

@ -202,6 +202,8 @@ exports.copyDirSyncRecursive = function(sourceDir, newDirLocation, opts) {
var contents = fs.readFileSync(srcFile);
fs.writeFileSync(destFile, contents);
var stat = fs.lstatSync(srcFile);
fs.chmodSync(destFile, stat.mode);
};
if(currFile.isDirectory()) {