diff options
author | Jonas <jonas@freesources.org> | 2023-09-25 18:25:53 +0200 |
---|---|---|
committer | Jonas <jonas@freesources.org> | 2023-10-23 20:50:24 +0200 |
commit | 7441ce2b11272c4401abcf5cb107d0c055b9dc99 (patch) | |
tree | c3f212a8eceec19fb9a31501558fc6d83f81f988 /lib/public/Files | |
parent | 9193d8be40d216c06919f9dc476b1fdc6a43c374 (diff) | |
download | nextcloud-server-7441ce2b11272c4401abcf5cb107d0c055b9dc99.tar.gz nextcloud-server-7441ce2b11272c4401abcf5cb107d0c055b9dc99.zip |
enh(IMountManager): Add method to get MountPoint from CachedMountInfo
Signed-off-by: Jonas <jonas@freesources.org>
Diffstat (limited to 'lib/public/Files')
-rw-r--r-- | lib/public/Files/Mount/IMountManager.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/public/Files/Mount/IMountManager.php b/lib/public/Files/Mount/IMountManager.php index a55e5758199..df2cc4c6209 100644 --- a/lib/public/Files/Mount/IMountManager.php +++ b/lib/public/Files/Mount/IMountManager.php @@ -26,6 +26,8 @@ declare(strict_types=1); */ namespace OCP\Files\Mount; +use OCP\Files\Config\ICachedMountInfo; + /** * Interface IMountManager * @@ -106,4 +108,14 @@ interface IMountManager { * @since 8.2.0 */ public function findByNumericId(int $id): array; + + /** + * Return the mount matching a cached mount info (or mount file info) + * + * @param ICachedMountInfo $info + * + * @return IMountPoint|null + * @since 28.0.0 + */ + public function getMountFromMountInfo(ICachedMountInfo $info): ?IMountPoint; } |