From a999420c7561791a30ac05ac389876f45aa6c11b Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 9 Aug 2016 15:52:13 +0200 Subject: get shared storage storage id without setting up the storage --- lib/private/Files/Mount/MountPoint.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/private/Files/Mount') diff --git a/lib/private/Files/Mount/MountPoint.php b/lib/private/Files/Mount/MountPoint.php index d6a6a5565ad..8b8f0574ae0 100644 --- a/lib/private/Files/Mount/MountPoint.php +++ b/lib/private/Files/Mount/MountPoint.php @@ -191,6 +191,13 @@ class MountPoint implements IMountPoint { return $this->storageId; } + /** + * @return int + */ + public function getNumericStorageId() { + return $this->getStorage()->getStorageCache()->getNumericId(); + } + /** * @param string $path * @return string -- cgit v1.2.3