Merge pull request #19246 from sammo2828/decrypt-all-keep-mtime

Keep the modification time during decryptFile
This commit is contained in:
Roeland Jago Douma 2020-02-04 15:54:58 +01:00 committed by GitHub
commit 889fbcb006
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)) {