From 5a6aba1e1114707942c613c2402eed3237b43a21 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 9 Nov 2011 18:41:57 +0100 Subject: provide caching for file metadata --- lib/filesystem.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/filesystem.php') diff --git a/lib/filesystem.php b/lib/filesystem.php index 268f7ddbd28..bd68831a711 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -42,6 +42,7 @@ * * the &run parameter can be set to false to prevent the operation from occuring */ + class OC_Filesystem{ static private $storages=array(); static private $mounts=array(); @@ -84,6 +85,14 @@ class OC_Filesystem{ } self::$fakeRoot=$fakeRoot; } + + /** + * get the fake root + * @return string + */ + static public function getRoot(){ + return self::$fakeRoot; + } /** * get the part of the path relative to the mountpoint of the storage it's stored in -- cgit v1.2.3