From d006a7c723e4c51a4132b0f8817392bf1f3cd534 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 10 Nov 2015 14:48:19 +0100 Subject: [PATCH] Fix scanning of incomplete folders --- lib/private/files/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/files/view.php b/lib/private/files/view.php index 0d5078fb3d..5f19558a4f 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -1191,7 +1191,7 @@ class View { try { // if the file is not in the cache or needs to be updated, trigger the scanner and reload the data - if (!$data) { + if (!$data || $data['size'] === -1) { $this->lockFile($relativePath, ILockingProvider::LOCK_SHARED); if (!$storage->file_exists($internalPath)) { $this->unlockFile($relativePath, ILockingProvider::LOCK_SHARED);