From: sammo2828 Date: Sat, 1 Feb 2020 05:20:33 +0000 (+1100) Subject: Keep the modification time during decryptFile X-Git-Tag: v18.0.1RC1~4^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b0c359ccd2cdcf886547b4b873a5040df6273f2f;p=nextcloud-server.git Keep the modification time during decryptFile --- diff --git a/lib/private/Encryption/DecryptAll.php b/lib/private/Encryption/DecryptAll.php index 251b1f7d53c..f7351ec1bed 100644 --- a/lib/private/Encryption/DecryptAll.php +++ b/lib/private/Encryption/DecryptAll.php @@ -266,6 +266,7 @@ class DecryptAll { try { $this->rootView->copy($source, $target); + $this->rootView->touch($target, $fileInfo->getMTime()); $this->rootView->rename($target, $source); } catch (DecryptionFailedException $e) { if ($this->rootView->file_exists($target)) {