Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-06-13 15:26:09 +0400
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-06-18 14:53:20 +0400
commit10de4a7b904fe472a240dd4d35d83daa919e6a1e (patch)
tree7a0e701d8a96c63b666f5e586d00d23d727fb75a /lib/private/files/filesystem.php
parent652af71ba98461d3ed061c6e1daa56549d1dfac5 (diff)
move creation of / and users 'files' from storage constructor to setupFS / mount initialization
Diffstat (limited to 'lib/private/files/filesystem.php')
-rw-r--r--lib/private/files/filesystem.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php
index 5fb345c87f8..f5a7060ec90 100644
--- a/lib/private/files/filesystem.php
+++ b/lib/private/files/filesystem.php
@@ -343,6 +343,14 @@ class Filesystem {
$homeStorage['arguments']['legacy'] = true;
}
self::mount($homeStorage['class'], $homeStorage['arguments'], $user);
+
+ $home = \OC\Files\Filesystem::getStorage($user);
+ if ( $home->instanceOfStorage('\OC\Files\ObjectStore\AbstractObjectStore') ) {
+ //create the files folder in the cache when mounting the objectstore for a user
+ if ( ! $home->is_dir('files') ) {
+ $home->mkdir('files');
+ }
+ }
}
else {
self::mount('\OC\Files\Storage\Local', array('datadir' => $root), $user);