aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-01-19 13:01:37 +0100
committerVincent Petry <pvince81@owncloud.com>2015-01-19 13:01:37 +0100
commit7c3c26ab941fa436d9dfb90958928816affb70f2 (patch)
tree5da07fb9f19ab2534cd382a9ea1c241753957447 /apps
parentfa9834372d7e635ce4a69c415423fe2c76b7b5b2 (diff)
downloadnextcloud-server-7c3c26ab941fa436d9dfb90958928816affb70f2.tar.gz
nextcloud-server-7c3c26ab941fa436d9dfb90958928816affb70f2.zip
Skip stray part files during initial encryption
Diffstat (limited to 'apps')
-rw-r--r--apps/files_encryption/lib/util.php4
1 files changed, 4 insertions, 0 deletions
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);