Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit 670a233

Browse files
authored
Merge pull request #2696 from makandre/preserveTimestamps_11
0.11.0: preserveTimestamps
2 parents b3c032e + ff7f473 commit 670a233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pfe/portal/modules/utils/sharedFunctions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ module.exports.updateObject = function updateObject(objectToUpdate, fieldsToAddT
8787

8888
module.exports.copyProject = async function copyFile(fromProjectPath, toProjectPath, mode) {
8989
log.debug(`copyProject fromPath: ${fromProjectPath}, toPath: ${toProjectPath}`);
90-
await fs.copy(fromProjectPath, toProjectPath);
90+
await fs.copy(fromProjectPath, toProjectPath, { preserveTimestamps: true });
9191
if (mode) {
9292
await fs.chmod(toProjectPath, mode);
9393
}

0 commit comments

Comments
 (0)