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