Keep the modification time during decryptFile

pull/19246/head
sammo2828 6 years ago committed by GitHub
parent 7b5072ab61
commit bb0c69524b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      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)) {

Loading…
Cancel
Save