Keep the modification time during decryptFile

This commit is contained in:
sammo2828 2020-02-01 16:20:33 +11:00 committed by Backportbot
parent dfe200bd4e
commit b0c359ccd2

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