From 469a684d45a3424a4ddd51a023f7b18fec0d950f Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 8 Mar 2022 17:12:26 +0100 Subject: allow getting mounts by provider Signed-off-by: Robin Appelman --- lib/public/Files/Config/IMountProviderCollection.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/public/Files') diff --git a/lib/public/Files/Config/IMountProviderCollection.php b/lib/public/Files/Config/IMountProviderCollection.php index f845d72cee6..8a98c614a42 100644 --- a/lib/public/Files/Config/IMountProviderCollection.php +++ b/lib/public/Files/Config/IMountProviderCollection.php @@ -38,6 +38,16 @@ interface IMountProviderCollection { */ public function getMountsForUser(IUser $user); + /** + * Get the configured mount points for the user from a specific mount provider + * + * @param \OCP\IUser $user + * @param class-string $mountProviderClass + * @return \OCP\Files\Mount\IMountPoint[] + * @since 24.0.0 + */ + public function getMountsFromProvider(IUser $user, string $mountProviderClass); + /** * Get the configured home mount for this user * -- cgit v1.2.3