From 430d1351db214a7ee22624f24a9a8f8f5f6be9ad Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 20 Jan 2016 14:58:15 -0800 Subject: [PATCH] preserve timestamps for assets copy --- server-console/src/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server-console/src/main.js b/server-console/src/main.js index d360dbd32c..28a69527a1 100644 --- a/server-console/src/main.js +++ b/server-console/src/main.js @@ -414,7 +414,9 @@ function performContentMigration() { console.log("Copying Stack Manager assets from " + oldAssetsPath + " to " + newAssetsPath); // attempt to copy the assets folder, show correct dialog depending on success/failure - fs.copy(oldAssetsPath, newAssetsPath, showMigrationCompletionDialog); + fs.copy(oldAssetsPath, newAssetsPath, { + preserveTimestamps: true + }, showMigrationCompletionDialog); } else { showMigrationCompletionDialog(null); }