diff options
Diffstat (limited to 'lib/private/files/node/root.php')
-rw-r--r-- | lib/private/files/node/root.php | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/private/files/node/root.php b/lib/private/files/node/root.php index 70135285b0d..2172d474efb 100644 --- a/lib/private/files/node/root.php +++ b/lib/private/files/node/root.php @@ -169,32 +169,6 @@ class Root extends Folder implements Emitter { } } - /** - * search file by id - * - * An array is returned because in the case where a single storage is mounted in different places the same file - * can exist in different places - * - * @param int $id - * @throws \OCP\Files\NotFoundException - * @return Node[] - */ - public function getById($id) { - $result = Cache::getById($id); - if (is_null($result)) { - throw new NotFoundException(); - } else { - list($storageId, $internalPath) = $result; - $nodes = array(); - $mounts = $this->mountManager->findByStorageId($storageId); - foreach ($mounts as $mount) { - $nodes[] = $this->get($mount->getMountPoint() . $internalPath); - } - return $nodes; - } - - } - //most operations cant be done on the root /** |