aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/files/view.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 0d5078fb3d8..5f19558a4fc 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);