aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files/mount/mountpoint.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-04-15 14:03:48 +0200
committerRoeland Jago Douma <rullzer@owncloud.com>2016-04-19 14:04:00 +0200
commit2f1c62ce0b022a2549ff80a299b8a3b314106fae (patch)
tree9ddac98ce1f4ad51cff1bcfaa130b229665b7c31 /lib/private/files/mount/mountpoint.php
parentc98fef8a51aa9828097db697fde2641771ed24c7 (diff)
downloadnextcloud-server-2f1c62ce0b022a2549ff80a299b8a3b314106fae.tar.gz
nextcloud-server-2f1c62ce0b022a2549ff80a299b8a3b314106fae.zip
Only construct the storage when we start using it
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('');
+ }
}