From: Vincent Petry Date: Mon, 19 Jan 2015 12:01:37 +0000 (+0100) Subject: Skip stray part files during initial encryption X-Git-Tag: v8.0.0beta2~46^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7c3c26ab941fa436d9dfb90958928816affb70f2;p=nextcloud-server.git Skip stray part files during initial encryption --- diff --git a/apps/files_encryption/lib/util.php b/apps/files_encryption/lib/util.php index c1f273d86ed..c811989127b 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);