diff --git a/tools/files.js b/tools/files.js index cdc2b0a079..51ac720dd5 100644 --- a/tools/files.js +++ b/tools/files.js @@ -281,9 +281,6 @@ files.mkdir_p = function (dir, mode) { // file whose basename matches one of the regexps, before // transformation, will be skipped. // -// If options.preserveMode is preset, an attempt will be made to -// preserve the file's mode (Unix permissions). -// // Returns the list of relative file paths copied to the destination, // as filtered by ignore and transformed by transformFilename. files.cp_r = function (from, to, options) { @@ -316,10 +313,6 @@ files.cp_r = function (from, to, options) { } copied.push(f); } - - if (options.preserveMode) { - fs.chmodSync(fullTo, fs.statSync(fullFrom).mode); - } }); return copied; };