diff options
author | provokateurin <kate@provokateurin.de> | 2024-09-06 09:44:04 +0200 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2024-09-09 11:09:37 +0200 |
commit | 007be83a968e6aee649ff8de173163cb5ef93a86 (patch) | |
tree | 18e03c4a5562989bbd6482e9e6a47f3619b71e30 /lib/private/Files/Node | |
parent | fc10fa592626d154a91d77d35c93beabdc7605c1 (diff) | |
download | nextcloud-server-fix/oc/inheritdoc.tar.gz nextcloud-server-fix/oc/inheritdoc.zip |
fix(OC): Remove doc blocks for OCP implementationsfix/oc/inheritdoc
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'lib/private/Files/Node')
-rw-r--r-- | lib/private/Files/Node/File.php | 32 | ||||
-rw-r--r-- | lib/private/Files/Node/Folder.php | 78 | ||||
-rw-r--r-- | lib/private/Files/Node/LazyFolder.php | 148 | ||||
-rw-r--r-- | lib/private/Files/Node/Node.php | 101 | ||||
-rw-r--r-- | lib/private/Files/Node/Root.php | 88 |
5 files changed, 0 insertions, 447 deletions
diff --git a/lib/private/Files/Node/File.php b/lib/private/Files/Node/File.php index eb6411d7d13..9ee6e90ede7 100644 --- a/lib/private/Files/Node/File.php +++ b/lib/private/Files/Node/File.php @@ -9,7 +9,6 @@ namespace OC\Files\Node; use OCP\Files\GenericFileException; use OCP\Files\NotPermittedException; -use OCP\Lock\LockedException; class File extends Node implements \OCP\Files\File { /** @@ -22,12 +21,6 @@ class File extends Node implements \OCP\Files\File { return new NonExistingFile($this->root, $this->view, $path); } - /** - * @return string - * @throws NotPermittedException - * @throws GenericFileException - * @throws LockedException - */ public function getContent() { if ($this->checkPermissions(\OCP\Constants::PERMISSION_READ)) { $content = $this->view->file_get_contents($this->path); @@ -40,12 +33,6 @@ class File extends Node implements \OCP\Files\File { } } - /** - * @param string|resource $data - * @throws NotPermittedException - * @throws GenericFileException - * @throws LockedException - */ public function putContent($data) { if ($this->checkPermissions(\OCP\Constants::PERMISSION_UPDATE)) { $this->sendHooks(['preWrite']); @@ -59,12 +46,6 @@ class File extends Node implements \OCP\Files\File { } } - /** - * @param string $mode - * @return resource|false - * @throws NotPermittedException - * @throws LockedException - */ public function fopen($mode) { $preHooks = []; $postHooks = []; @@ -100,11 +81,6 @@ class File extends Node implements \OCP\Files\File { } } - /** - * @throws NotPermittedException - * @throws \OCP\Files\InvalidPathException - * @throws \OCP\Files\NotFoundException - */ public function delete() { if ($this->checkPermissions(\OCP\Constants::PERMISSION_DELETE)) { $this->sendHooks(['preDelete']); @@ -118,18 +94,10 @@ class File extends Node implements \OCP\Files\File { } } - /** - * @param string $type - * @param bool $raw - * @return string - */ public function hash($type, $raw = false) { return $this->view->hash($type, $this->path, $raw); } - /** - * @inheritdoc - */ public function getChecksum() { return $this->getFileInfo()->getChecksum(); } diff --git a/lib/private/Files/Node/Folder.php b/lib/private/Files/Node/Folder.php index ca256b09d33..2302b57f052 100644 --- a/lib/private/Files/Node/Folder.php +++ b/lib/private/Files/Node/Folder.php @@ -40,11 +40,6 @@ class Folder extends Node implements \OCP\Files\Folder { return new NonExistingFolder($this->root, $this->view, $path); } - /** - * @param string $path path relative to the folder - * @return string - * @throws \OCP\Files\NotPermittedException - */ public function getFullPath($path) { $path = $this->normalizePath($path); if (!$this->isValidPath($path)) { @@ -53,30 +48,14 @@ class Folder extends Node implements \OCP\Files\Folder { return $this->path . $path; } - /** - * @param string $path - * @return string|null - */ public function getRelativePath($path) { return PathHelper::getRelativePath($this->getPath(), $path); } - /** - * check if a node is a (grand-)child of the folder - * - * @param \OC\Files\Node\Node $node - * @return bool - */ public function isSubNode($node) { return str_starts_with($node->getPath(), $this->path . '/'); } - /** - * get the content of this directory - * - * @return Node[] - * @throws \OCP\Files\NotFoundException - */ public function getDirectoryListing() { $folderContent = $this->view->getDirectoryContent($this->path, '', $this->getFileInfo(false)); @@ -103,21 +82,10 @@ class Folder extends Node implements \OCP\Files\Folder { } } - /** - * Get the node at $path - * - * @param string $path - * @return \OC\Files\Node\Node - * @throws \OCP\Files\NotFoundException - */ public function get($path) { return $this->root->get($this->getFullPath($path)); } - /** - * @param string $path - * @return bool - */ public function nodeExists($path) { try { $this->get($path); @@ -127,11 +95,6 @@ class Folder extends Node implements \OCP\Files\Folder { } } - /** - * @param string $path - * @return \OC\Files\Node\Folder - * @throws \OCP\Files\NotPermittedException - */ public function newFolder($path) { if ($this->checkPermissions(\OCP\Constants::PERMISSION_CREATE)) { $fullPath = $this->getFullPath($path); @@ -149,12 +112,6 @@ class Folder extends Node implements \OCP\Files\Folder { } } - /** - * @param string $path - * @param string | resource | null $content - * @return \OC\Files\Node\File - * @throws \OCP\Files\NotPermittedException - */ public function newFile($path, $content = null) { if ($path === '') { throw new NotPermittedException('Could not create as provided path is empty'); @@ -189,12 +146,6 @@ class Folder extends Node implements \OCP\Files\Folder { return new SearchQuery($operator, $limit, $offset, [], $user); } - /** - * search for files with the name matching $query - * - * @param string|ISearchQuery $query - * @return \OC\Files\Node\Node[] - */ public function search($query) { if (is_string($query)) { $query = $this->queryFromOperator(new SearchComparison(ISearchComparison::COMPARE_LIKE, 'name', '%' . $query . '%')); @@ -271,12 +222,6 @@ class Folder extends Node implements \OCP\Files\Folder { ); } - /** - * search for files by mimetype - * - * @param string $mimetype - * @return Node[] - */ public function searchByMime($mimetype) { if (!str_contains($mimetype, '/')) { $query = $this->queryFromOperator(new SearchComparison(ISearchComparison::COMPARE_LIKE, 'mimetype', $mimetype . '/%')); @@ -286,13 +231,6 @@ class Folder extends Node implements \OCP\Files\Folder { return $this->search($query); } - /** - * search for files by tag - * - * @param string|int $tag name or tag id - * @param string $userId owner of the tags - * @return Node[] - */ public function searchByTag($tag, $userId) { $query = $this->queryFromOperator(new SearchComparison(ISearchComparison::COMPARE_EQUAL, 'tagname', $tag), $userId); return $this->search($query); @@ -303,10 +241,6 @@ class Folder extends Node implements \OCP\Files\Folder { return $this->search($query); } - /** - * @param int $id - * @return \OCP\Files\Node[] - */ public function getById($id) { return $this->root->getByIdInPath((int)$id, $this->getPath()); } @@ -379,23 +313,11 @@ class Folder extends Node implements \OCP\Files\Folder { } } - /** - * Add a suffix to the name in case the file exists - * - * @param string $name - * @return string - * @throws NotPermittedException - */ public function getNonExistingName($name) { $uniqueName = \OC_Helper::buildNotExistingFileNameForView($this->getPath(), $name, $this->view); return trim($this->getRelativePath($uniqueName), '/'); } - /** - * @param int $limit - * @param int $offset - * @return INode[] - */ public function getRecent($limit, $offset = 0) { $filterOutNonEmptyFolder = new SearchBinaryOperator( // filter out non empty folders diff --git a/lib/private/Files/Node/LazyFolder.php b/lib/private/Files/Node/LazyFolder.php index 83ed7e534a7..028368483fe 100644 --- a/lib/private/Files/Node/LazyFolder.php +++ b/lib/private/Files/Node/LazyFolder.php @@ -134,9 +134,6 @@ class LazyFolder implements Folder { $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function get($path) { return $this->getRootFolder()->get($this->getFullPath($path)); } @@ -148,37 +145,22 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function delete() { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function copy($targetPath) { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function touch($mtime = null) { $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getStorage() { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getPath() { if (isset($this->data['path'])) { return $this->data['path']; @@ -186,16 +168,10 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getInternalPath() { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getId() { if (isset($this->data['fileid'])) { return $this->data['fileid']; @@ -203,16 +179,10 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function stat() { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getMTime() { if (isset($this->data['mtime'])) { return $this->data['mtime']; @@ -220,9 +190,6 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getSize($includeMounts = true): int|float { if (isset($this->data['size'])) { return $this->data['size']; @@ -230,9 +197,6 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getEtag() { if (isset($this->data['etag'])) { return $this->data['etag']; @@ -240,9 +204,6 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getPermissions() { if (isset($this->data['permissions'])) { return $this->data['permissions']; @@ -250,9 +211,6 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function isReadable() { if (isset($this->data['permissions'])) { return ($this->data['permissions'] & Constants::PERMISSION_READ) == Constants::PERMISSION_READ; @@ -260,9 +218,6 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function isUpdateable() { if (isset($this->data['permissions'])) { return ($this->data['permissions'] & Constants::PERMISSION_UPDATE) == Constants::PERMISSION_UPDATE; @@ -270,9 +225,6 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function isDeletable() { if (isset($this->data['permissions'])) { return ($this->data['permissions'] & Constants::PERMISSION_DELETE) == Constants::PERMISSION_DELETE; @@ -280,9 +232,6 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function isShareable() { if (isset($this->data['permissions'])) { return ($this->data['permissions'] & Constants::PERMISSION_SHARE) == Constants::PERMISSION_SHARE; @@ -290,16 +239,10 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getParent() { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getName() { if (isset($this->data['path'])) { return basename($this->data['path']); @@ -317,9 +260,6 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getMimetype() { if (isset($this->data['mimetype'])) { return $this->data['mimetype']; @@ -327,9 +267,6 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getMimePart() { if (isset($this->data['mimetype'])) { [$part,] = explode('/', $this->data['mimetype']); @@ -338,16 +275,10 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function isEncrypted() { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getType() { if (isset($this->data['type'])) { return $this->data['type']; @@ -355,37 +286,22 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function isShared() { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function isMounted() { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getMountPoint() { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getOwner() { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getChecksum() { return $this->__call(__FUNCTION__, func_get_args()); } @@ -394,9 +310,6 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getFullPath($path) { if (isset($this->data['path'])) { $path = PathHelper::normalizePath($path); @@ -408,58 +321,34 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function isSubNode($node) { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getDirectoryListing() { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function nodeExists($path) { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function newFolder($path) { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function newFile($path, $content = null) { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function search($query) { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function searchByMime($mimetype) { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function searchByTag($tag, $userId) { return $this->__call(__FUNCTION__, func_get_args()); } @@ -468,9 +357,6 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getById($id) { return $this->getRootFolder()->getByIdInPath((int)$id, $this->getPath()); } @@ -479,72 +365,42 @@ class LazyFolder implements Folder { return $this->getRootFolder()->getFirstNodeByIdInPath($id, $this->getPath()); } - /** - * @inheritDoc - */ public function getFreeSpace() { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function isCreatable() { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getNonExistingName($name) { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function move($targetPath) { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function lock($type) { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function changeLock($targetType) { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function unlock($type) { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getRecent($limit, $offset = 0) { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getCreationTime(): int { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - */ public function getUploadTime(): int { return $this->__call(__FUNCTION__, func_get_args()); } @@ -560,10 +416,6 @@ class LazyFolder implements Folder { return $this->__call(__FUNCTION__, func_get_args()); } - /** - * @inheritDoc - * @return array<string, int|string|bool|float|string[]|int[]> - */ public function getMetadata(): array { return $this->data['metadata'] ?? $this->__call(__FUNCTION__, func_get_args()); } diff --git a/lib/private/Files/Node/Node.php b/lib/private/Files/Node/Node.php index 5dbdc4054bf..66c74a8158e 100644 --- a/lib/private/Files/Node/Node.php +++ b/lib/private/Files/Node/Node.php @@ -18,7 +18,6 @@ use OCP\Files\IRootFolder; use OCP\Files\Node as INode; use OCP\Files\NotFoundException; use OCP\Files\NotPermittedException; -use OCP\Lock\LockedException; use OCP\PreConditionNotMetException; // FIXME: this class really should be abstract (+1) @@ -133,12 +132,6 @@ class Node implements INode { public function delete() { } - /** - * @param int $mtime - * @throws InvalidPathException - * @throws NotFoundException - * @throws NotPermittedException - */ public function touch($mtime = null) { if ($this->checkPermissions(\OCP\Constants::PERMISSION_UPDATE)) { $this->sendHooks(['preTouch']); @@ -163,114 +156,54 @@ class Node implements INode { return $storage; } - /** - * @return string - */ public function getPath() { return $this->path; } - /** - * @return string - */ public function getInternalPath() { return $this->getFileInfo(false)->getInternalPath(); } - /** - * @return int - * @throws InvalidPathException - * @throws NotFoundException - */ public function getId() { return $this->getFileInfo(false)->getId() ?? -1; } - /** - * @return array - */ public function stat() { return $this->view->stat($this->path); } - /** - * @return int - * @throws InvalidPathException - * @throws NotFoundException - */ public function getMTime() { return $this->getFileInfo()->getMTime(); } - /** - * @param bool $includeMounts - * @return int|float - * @throws InvalidPathException - * @throws NotFoundException - */ public function getSize($includeMounts = true): int|float { return $this->getFileInfo()->getSize($includeMounts); } - /** - * @return string - * @throws InvalidPathException - * @throws NotFoundException - */ public function getEtag() { return $this->getFileInfo()->getEtag(); } - /** - * @return int - * @throws InvalidPathException - * @throws NotFoundException - */ public function getPermissions() { return $this->getFileInfo(false)->getPermissions(); } - /** - * @return bool - * @throws InvalidPathException - * @throws NotFoundException - */ public function isReadable() { return $this->getFileInfo(false)->isReadable(); } - /** - * @return bool - * @throws InvalidPathException - * @throws NotFoundException - */ public function isUpdateable() { return $this->getFileInfo(false)->isUpdateable(); } - /** - * @return bool - * @throws InvalidPathException - * @throws NotFoundException - */ public function isDeletable() { return $this->getFileInfo(false)->isDeletable(); } - /** - * @return bool - * @throws InvalidPathException - * @throws NotFoundException - */ public function isShareable() { return $this->getFileInfo(false)->isShareable(); } - /** - * @return bool - * @throws InvalidPathException - * @throws NotFoundException - */ public function isCreatable() { return $this->getFileInfo(false)->isCreatable(); } @@ -306,9 +239,6 @@ class Node implements INode { return $this->parent; } - /** - * @return string - */ public function getName() { return basename($this->path); } @@ -370,37 +300,18 @@ class Node implements INode { return $this->getFileInfo(false)->getExtension(); } - /** - * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE - * @throws LockedException - */ public function lock($type) { $this->view->lockFile($this->path, $type); } - /** - * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE - * @throws LockedException - */ public function changeLock($type) { $this->view->changeLock($this->path, $type); } - /** - * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE - * @throws LockedException - */ public function unlock($type) { $this->view->unlockFile($this->path, $type); } - /** - * @param string $targetPath - * @return INode - * @throws InvalidPathException - * @throws NotFoundException - * @throws NotPermittedException if copy not allowed or failed - */ public function copy($targetPath) { $targetPath = $this->normalizePath($targetPath); $parent = $this->root->get(dirname($targetPath)); @@ -420,14 +331,6 @@ class Node implements INode { } } - /** - * @param string $targetPath - * @return INode - * @throws InvalidPathException - * @throws NotFoundException - * @throws NotPermittedException if move not allowed or failed - * @throws LockedException - */ public function move($targetPath) { $targetPath = $this->normalizePath($targetPath); $parent = $this->root->get(dirname($targetPath)); @@ -479,10 +382,6 @@ class Node implements INode { return $this->fileInfo->getParentId(); } - /** - * @inheritDoc - * @return array<string, int|string|bool|float|string[]|int[]> - */ public function getMetadata(): array { return $this->fileInfo->getMetadata(); } diff --git a/lib/private/Files/Node/Root.php b/lib/private/Files/Node/Root.php index 416adc7f374..755167f0eb4 100644 --- a/lib/private/Files/Node/Root.php +++ b/lib/private/Files/Node/Root.php @@ -98,20 +98,10 @@ class Root extends Folder implements IRootFolder { return $this->user; } - /** - * @param string $scope - * @param string $method - * @param callable $callback - */ public function listen($scope, $method, callable $callback) { $this->emitter->listen($scope, $method, $callback); } - /** - * @param string $scope optional - * @param string $method optional - * @param callable $callback optional - */ public function removeListener($scope = null, $method = null, ?callable $callback = null) { $this->emitter->removeListener($scope, $method, $callback); } @@ -139,10 +129,6 @@ class Root extends Folder implements IRootFolder { return $this->mountManager->find($mountPoint); } - /** - * @param string $mountPoint - * @return \OC\Files\Mount\MountPoint[] - */ public function getMountsIn(string $mountPoint): array { return $this->mountManager->findIn($mountPoint); } @@ -170,12 +156,6 @@ class Root extends Folder implements IRootFolder { $this->mountManager->remove($mount); } - /** - * @param string $path - * @return Node - * @throws \OCP\Files\NotPermittedException - * @throws \OCP\Files\NotFoundException - */ public function get($path) { $path = $this->normalizePath($path); if ($this->isValidPath($path)) { @@ -206,138 +186,74 @@ class Root extends Folder implements IRootFolder { throw new NotPermittedException(); } - /** - * @param string $targetPath - * @return Node - * @throws \OCP\Files\NotPermittedException - */ public function copy($targetPath) { throw new NotPermittedException(); } - /** - * @param int $mtime - * @throws \OCP\Files\NotPermittedException - */ public function touch($mtime = null) { throw new NotPermittedException(); } - /** - * @return \OC\Files\Storage\Storage - * @throws \OCP\Files\NotFoundException - */ public function getStorage() { throw new NotFoundException(); } - /** - * @return string - */ public function getPath() { return '/'; } - /** - * @return string - */ public function getInternalPath() { return ''; } - /** - * @return int - */ public function getId() { return 0; } - /** - * @return array - */ public function stat() { return []; } - /** - * @return int - */ public function getMTime() { return 0; } - /** - * @param bool $includeMounts - * @return int|float - */ public function getSize($includeMounts = true): int|float { return 0; } - /** - * @return string - */ public function getEtag() { return ''; } - /** - * @return int - */ public function getPermissions() { return \OCP\Constants::PERMISSION_CREATE; } - /** - * @return bool - */ public function isReadable() { return false; } - /** - * @return bool - */ public function isUpdateable() { return false; } - /** - * @return bool - */ public function isDeletable() { return false; } - /** - * @return bool - */ public function isShareable() { return false; } - /** - * @throws \OCP\Files\NotFoundException - */ public function getParent(): INode|IRootFolder { throw new NotFoundException(); } - /** - * @return string - */ public function getName() { return ''; } - /** - * Returns a view to user's files folder - * - * @param string $userId user ID - * @return \OCP\Files\Folder - * @throws NoUserException - * @throws NotPermittedException - */ public function getUserFolder($userId) { $userObject = $this->userManager->get($userId); @@ -410,10 +326,6 @@ class Root extends Folder implements IRootFolder { return $node; } - /** - * @param int $id - * @return Node[] - */ public function getByIdInPath(int $id, string $path): array { $mountCache = $this->getUserMountCache(); if (strpos($path, '/', 1) > 0) { |