Fix scanning of incomplete folders
This commit is contained in:
parent
02f847bc66
commit
d006a7c723
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue