diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-11-09 18:41:57 +0100 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-11-09 18:41:57 +0100 |
commit | 5a6aba1e1114707942c613c2402eed3237b43a21 (patch) | |
tree | 5cda68cc0256db5a3b3002fa694026d7d1475128 /lib/filesystem.php | |
parent | 5cc6635eb81a8d76c04ee040a791f51ebbe389ef (diff) | |
download | nextcloud-server-5a6aba1e1114707942c613c2402eed3237b43a21.tar.gz nextcloud-server-5a6aba1e1114707942c613c2402eed3237b43a21.zip |
provide caching for file metadata
Diffstat (limited to 'lib/filesystem.php')
-rw-r--r-- | lib/filesystem.php | 9 |
1 files changed, 9 insertions, 0 deletions
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 |