From 7c3c26ab941fa436d9dfb90958928816affb70f2 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 19 Jan 2015 13:01:37 +0100 Subject: [PATCH] Skip stray part files during initial encryption --- apps/files_encryption/lib/util.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/files_encryption/lib/util.php b/apps/files_encryption/lib/util.php index c1f273d86e..c811989127 100644 --- a/apps/files_encryption/lib/util.php +++ b/apps/files_encryption/lib/util.php @@ -279,6 +279,10 @@ class Util { while (false !== ($file = readdir($handle))) { if ($file !== "." && $file !== "..") { + // skip stray part files + if (Helper::isPartialFilePath($file)) { + continue; + } $filePath = $directory . '/' . $this->view->getRelativePath('/' . $file); $relPath = Helper::stripUserFilesPath($filePath);