diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-02-04 15:54:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-04 15:54:58 +0100 |
commit | 889fbcb006cd9654c373ae981beb9e6d9e2c7a56 (patch) | |
tree | 73896a49a1274aeeddcfcac3fc3d796fe042b28f | |
parent | d63fc8eea498c2035c54e3081c4256f02193235d (diff) | |
parent | bb0c69524b026e4d40fc5c717b99d4f48b69cd5a (diff) | |
download | nextcloud-server-889fbcb006cd9654c373ae981beb9e6d9e2c7a56.tar.gz nextcloud-server-889fbcb006cd9654c373ae981beb9e6d9e2c7a56.zip |
Merge pull request #19246 from sammo2828/decrypt-all-keep-mtime
Keep the modification time during decryptFile
-rw-r--r-- | lib/private/Encryption/DecryptAll.php | 1 |
1 files changed, 1 insertions, 0 deletions
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)) { |