summaryrefslogtreecommitdiffstats
path: root/lib/private/files/filesystem.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/files/filesystem.php')
-rw-r--r--lib/private/files/filesystem.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php
index cdbbbf3d3cd..51a241a4e33 100644
--- a/lib/private/files/filesystem.php
+++ b/lib/private/files/filesystem.php
@@ -45,6 +45,7 @@ class Filesystem {
*/
static private $defaultInstance;
+ static private $usersSetup = array();
/**
* classname which used for hooks handling
@@ -321,7 +322,10 @@ class Filesystem {
if ($user == '') {
$user = \OC_User::getUser();
}
- $parser = new \OC\ArrayParser();
+ if (isset(self::$usersSetup[$user])) {
+ return;
+ }
+ self::$usersSetup[$user] = true;
$root = \OC_User::getHome($user);