Skip to content
Snippets Groups Projects
Unverified Commit 889fbcb0 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

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

Keep the modification time during decryptFile
parents d63fc8ee bb0c6952
No related branches found
No related tags found
No related merge requests found
...@@ -266,6 +266,7 @@ class DecryptAll { ...@@ -266,6 +266,7 @@ class DecryptAll {
try { try {
$this->rootView->copy($source, $target); $this->rootView->copy($source, $target);
$this->rootView->touch($target, $fileInfo->getMTime());
$this->rootView->rename($target, $source); $this->rootView->rename($target, $source);
} catch (DecryptionFailedException $e) { } catch (DecryptionFailedException $e) {
if ($this->rootView->file_exists($target)) { if ($this->rootView->file_exists($target)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment