diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-08-05 16:58:10 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-08-05 16:58:10 +0200 |
commit | bf8f910a32ca20d9d2cdadfec9f46694b9a53190 (patch) | |
tree | dd9452b7667ebb37437a7ef02b4d56d7abf6ef49 /lib/private/files/node/root.php | |
parent | 54030f4eefa751478b64b277614c0db89435f18f (diff) | |
download | nextcloud-server-bf8f910a32ca20d9d2cdadfec9f46694b9a53190.tar.gz nextcloud-server-bf8f910a32ca20d9d2cdadfec9f46694b9a53190.zip |
Fix Folder::getById
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 /** |