summaryrefslogtreecommitdiffstats
path: root/lib/private/files/mount/mountpoint.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/files/mount/mountpoint.php')
-rw-r--r--lib/private/files/mount/mountpoint.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/files/mount/mountpoint.php b/lib/private/files/mount/mountpoint.php
index b606c625cb1..7b9294fc1e0 100644
--- a/lib/private/files/mount/mountpoint.php
+++ b/lib/private/files/mount/mountpoint.php
@@ -239,4 +239,13 @@ class MountPoint implements IMountPoint {
public function getOptions() {
return $this->mountOptions;
}
+
+ /**
+ * Get the file id of the root of the storage
+ *
+ * @return int
+ */
+ public function getStorageRootId() {
+ return (int)$this->getStorage()->getCache()->getId('');
+ }
}