]> source.dussan.org Git - nextcloud-server.git/commitdiff
Skip stray part files during initial encryption
authorVincent Petry <pvince81@owncloud.com>
Mon, 19 Jan 2015 12:01:37 +0000 (13:01 +0100)
committerVincent Petry <pvince81@owncloud.com>
Mon, 19 Jan 2015 12:01:37 +0000 (13:01 +0100)
apps/files_encryption/lib/util.php

index c1f273d86edcd1d99d24abd44887b6b2a16d73fb..c811989127b842de973bc5ce70745d8aa49dc3af 100644 (file)
@@ -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);