From bb0c69524b026e4d40fc5c717b99d4f48b69cd5a Mon Sep 17 00:00:00 2001 From: sammo2828 Date: Sat, 1 Feb 2020 16:20:33 +1100 Subject: [PATCH] Keep the modification time during decryptFile --- lib/private/Encryption/DecryptAll.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/private/Encryption/DecryptAll.php b/lib/private/Encryption/DecryptAll.php index 251b1f7d53..f7351ec1be 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)) {