diff options
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 |