From d76a87f3b0ad3f96373984db31470463b1fdc946 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Wed, 24 Oct 2018 16:49:39 +0200 Subject: skip already decrypted files on decrypt all command Signed-off-by: Bjoern Schiessle --- lib/private/Encryption/DecryptAll.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/private/Encryption') 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(); -- cgit v1.2.3