diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-13 15:05:54 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-18 12:53:20 +0200 |
commit | 7493ff062410093eca753780b7d226c63427d274 (patch) | |
tree | f3a13e1cf447517446cf724fbdb3fd5fa4d2132e /lib/private/util.php | |
parent | c18836c8ae42d5a334baea228b7e792098a02089 (diff) | |
download | nextcloud-server-7493ff062410093eca753780b7d226c63427d274.tar.gz nextcloud-server-7493ff062410093eca753780b7d226c63427d274.zip |
fix unit test by always initializing the root of the storage in the constructor
Diffstat (limited to 'lib/private/util.php')
-rwxr-xr-x | lib/private/util.php | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index 435a2914555..b4772f14960 100755 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -110,17 +110,8 @@ class OC_Util { $userDir = '/'.$user.'/files'; - //autocreate users "home" directory - if ( isset( $root_storage ) ) { - $root = \OC\Files\Filesystem::getStorage('/'); - if ( $root->instanceOfStorage('\OC\Files\ObjectStore\AbstractObjectStore') ) { - //initialize cache with root directory in cache - if ( ! $root->is_dir('/') ) { - $root->mkdir('/'); - } - } - } else { - //copy skeleton for local storage only + // copy skeleton for local storage only + if ( ! isset( $root_storage ) ) { $userRoot = OC_User::getHome($user); $userDirectory = $userRoot . '/files'; if( !is_dir( $userDirectory )) { |