Skip stray part files during initial encryption

This commit is contained in:
Vincent Petry 2015-01-19 13:01:37 +01:00
parent fa9834372d
commit 7c3c26ab94
1 changed files with 4 additions and 0 deletions

View 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);