Merge pull request #19297 from nextcloud/backport/19246/stable18
[stable18] Keep the modification time during decryptFile
This commit is contained in:
commit
062d9dadcb
1 changed files with 1 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue