@@ 1769-1778 (lines=10) @@ | ||
1766 | // recursively |
|
1767 | continue; |
|
1768 | } |
|
1769 | if ($mount->getStorage()) { |
|
1770 | $cache = $mount->getStorage()->getCache(); |
|
1771 | $internalPath = $cache->getPathById($id); |
|
1772 | if (\is_string($internalPath)) { |
|
1773 | $fullPath = $mount->getMountPoint() . $internalPath; |
|
1774 | if (($path = $this->getRelativePath($fullPath)) !== null) { |
|
1775 | return $path; |
|
1776 | } |
|
1777 | } |
|
1778 | } |
|
1779 | } |
|
1780 | throw new NotFoundException(\sprintf('File with id "%s" has not been found.', $id)); |
|
1781 | } |
@@ 286-295 (lines=10) @@ | ||
283 | /** |
|
284 | * @var \OC\Files\Mount\MountPoint $mount |
|
285 | */ |
|
286 | if ($mount->getStorage()) { |
|
287 | $cache = $mount->getStorage()->getCache(); |
|
288 | $internalPath = $cache->getPathById($id); |
|
289 | if (\is_string($internalPath)) { |
|
290 | $fullPath = $mount->getMountPoint() . $internalPath; |
|
291 | if (($path = $this->getRelativePath($fullPath)) !== null) { |
|
292 | $nodes[] = $this->get($path); |
|
293 | } |
|
294 | } |
|
295 | } |
|
296 | } |
|
297 | return $nodes; |
|
298 | } |