diff --git a/apps/files_encryption/lib/util.php b/apps/files_encryption/lib/util.php
index c1f273d86edcd1d99d24abd44887b6b2a16d73fb..c811989127b842de973bc5ce70745d8aa49dc3af 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);