diff options
Diffstat (limited to 'apps/dav/lib/Files/FilesHome.php')
-rw-r--r-- | apps/dav/lib/Files/FilesHome.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/dav/lib/Files/FilesHome.php b/apps/dav/lib/Files/FilesHome.php index 63e7916edcf..1ff918aabbb 100644 --- a/apps/dav/lib/Files/FilesHome.php +++ b/apps/dav/lib/Files/FilesHome.php @@ -39,15 +39,12 @@ class FilesHome extends Directory { * FilesHome constructor. * * @param array $principalInfo + * @param FileInfo $userFolder */ - public function __construct($principalInfo) { + public function __construct($principalInfo, FileInfo $userFolder) { $this->principalInfo = $principalInfo; $view = \OC\Files\Filesystem::getView(); - $rootInfo = $view->getFileInfo(''); - if (!($rootInfo instanceof FileInfo)) { - throw new \Exception('Home does not exist'); - } - parent::__construct($view, $rootInfo); + parent::__construct($view, $userFolder); } function delete() { |