From b0c359ccd2cdcf886547b4b873a5040df6273f2f Mon Sep 17 00:00:00 2001 From: sammo2828 Date: Sat, 1 Feb 2020 16:20:33 +1100 Subject: 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 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)) { -- cgit v1.2.3