summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-06-15 23:21:56 +0200
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-06-23 23:04:44 +0000
commit09c4ba257c41c68fe58c3a5d298e82a32034b9db (patch)
tree6b5922d0dacc8f7b7068d826300bd4681f7f77eb /lib/public
parentf724760f67bbd8c177dd716fa3b95e990a787bda (diff)
downloadnextcloud-server-09c4ba257c41c68fe58c3a5d298e82a32034b9db.tar.gz
nextcloud-server-09c4ba257c41c68fe58c3a5d298e82a32034b9db.zip
refactor: declare getMount() and getMountsIn() at IRootFolder
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Files/IRootFolder.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/public/Files/IRootFolder.php b/lib/public/Files/IRootFolder.php
index 452c0fd3157..1fee0b3595e 100644
--- a/lib/public/Files/IRootFolder.php
+++ b/lib/public/Files/IRootFolder.php
@@ -26,6 +26,7 @@ namespace OCP\Files;
use OC\Hooks\Emitter;
use OC\User\NoUserException;
+use OCP\Files\Mount\IMountPoint;
/**
* Interface IRootFolder
@@ -55,4 +56,16 @@ interface IRootFolder extends Folder, Emitter {
* @since 24.0.0
*/
public function getByIdInPath(int $id, string $path);
+
+ /**
+ * @return IMountPoint[]
+ *
+ * @since 28.0.0
+ */
+ public function getMountsIn(string $mountPoint): array;
+
+ /**
+ * @since 28.0.0
+ */
+ public function getMount(string $mountPoint): IMountPoint;
}