summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Encryption/DecryptAll.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/Encryption/DecryptAll.php b/lib/private/Encryption/DecryptAll.php
index 12bda54a52e..16eee347334 100644
--- a/lib/private/Encryption/DecryptAll.php
+++ b/lib/private/Encryption/DecryptAll.php
@@ -252,6 +252,12 @@ class DecryptAll {
*/
protected function decryptFile($path) {
+ // skip already decrypted files
+ $fileInfo = $this->rootView->getFileInfo($path);
+ if ($fileInfo !== false && !$fileInfo->isEncrypted()) {
+ return true;
+ }
+
$source = $path;
$target = $path . '.decrypted.' . $this->getTimestamp();