|
@@ 304-308 (lines=5) @@
|
| 301 |
|
return $documents; |
| 302 |
|
} |
| 303 |
|
|
| 304 |
|
if ($this->configService->getAppValue(ConfigService::FILES_EXTERNAL) === '2' |
| 305 |
|
&& $node->getMountPoint() |
| 306 |
|
->getMountType() === 'external') { |
| 307 |
|
return $documents; |
| 308 |
|
} |
| 309 |
|
|
| 310 |
|
$files = $node->getDirectoryListing(); |
| 311 |
|
foreach ($files as $file) { |
|
@@ 548-552 (lines=5) @@
|
| 545 |
|
try { |
| 546 |
|
$file = $this->getFileFromIndex($index); |
| 547 |
|
|
| 548 |
|
if ($file->getMountPoint() |
| 549 |
|
->getMountType() === 'external' |
| 550 |
|
&& $this->configService->getAppValue(ConfigService::FILES_EXTERNAL) === '2') { |
| 551 |
|
throw new Exception(); |
| 552 |
|
} |
| 553 |
|
} catch (Exception $e) { |
| 554 |
|
$index->setStatus(IIndex::INDEX_REMOVE); |
| 555 |
|
$document = new FilesDocument($index->getProviderId(), $index->getDocumentId()); |