| @@ 285-294 (lines=10) @@ | ||
| 282 | /** |
|
| 283 | * @var \OC\Files\Mount\MountPoint $mount |
|
| 284 | */ |
|
| 285 | if ($mount->getStorage()) { |
|
| 286 | $cache = $mount->getStorage()->getCache(); |
|
| 287 | $internalPath = $cache->getPathById($id); |
|
| 288 | if (\is_string($internalPath)) { |
|
| 289 | $fullPath = $mount->getMountPoint() . $internalPath; |
|
| 290 | if (($path = $this->getRelativePath($fullPath)) !== null) { |
|
| 291 | $nodes[] = $this->get($path); |
|
| 292 | } |
|
| 293 | } |
|
| 294 | } |
|
| 295 | } |
|
| 296 | return $nodes; |
|
| 297 | } |
|
| @@ 1752-1761 (lines=10) @@ | ||
| 1749 | // recursively |
|
| 1750 | continue; |
|
| 1751 | } |
|
| 1752 | if ($mount->getStorage()) { |
|
| 1753 | $cache = $mount->getStorage()->getCache(); |
|
| 1754 | $internalPath = $cache->getPathById($id); |
|
| 1755 | if (\is_string($internalPath)) { |
|
| 1756 | $fullPath = $mount->getMountPoint() . $internalPath; |
|
| 1757 | if (($path = $this->getRelativePath($fullPath)) !== null) { |
|
| 1758 | return $path; |
|
| 1759 | } |
|
| 1760 | } |
|
| 1761 | } |
|
| 1762 | } |
|
| 1763 | throw new NotFoundException(\sprintf('File with id "%s" has not been found.', $id)); |
|
| 1764 | } |
|