Fix scanning of incomplete folders

This commit is contained in:
Robin Appelman 2015-11-10 14:48:19 +01:00
parent 02f847bc66
commit d006a7c723
1 changed files with 1 additions and 1 deletions

View File

@ -1191,7 +1191,7 @@ class View {
try { try {
// if the file is not in the cache or needs to be updated, trigger the scanner and reload the data // 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); $this->lockFile($relativePath, ILockingProvider::LOCK_SHARED);
if (!$storage->file_exists($internalPath)) { if (!$storage->file_exists($internalPath)) {
$this->unlockFile($relativePath, ILockingProvider::LOCK_SHARED); $this->unlockFile($relativePath, ILockingProvider::LOCK_SHARED);