assigning original file's mode to the copied file
This commit is contained in:
parent
31cf44b999
commit
58380677c2
1 changed files with 2 additions and 0 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Reference in a new issue