aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-11-10 14:48:19 +0100
committerRobin Appelman <icewind@owncloud.com>2015-11-19 13:30:50 +0100
commitd006a7c723e4c51a4132b0f8817392bf1f3cd534 (patch)
treeb6009b7beb3c9ba2075dbd1a6b113b47f26dcf9b /lib
parent02f847bc66ea9238c10a5a04d3980c81c7b09293 (diff)
downloadnextcloud-server-d006a7c723e4c51a4132b0f8817392bf1f3cd534.tar.gz
nextcloud-server-d006a7c723e4c51a4132b0f8817392bf1f3cd534.zip
Fix scanning of incomplete folders
Diffstat (limited to 'lib')
-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);