diff --git a/lib/view.php b/lib/view.php index a39abf59..3f6ea8fd 100644 --- a/lib/view.php +++ b/lib/view.php @@ -20,7 +20,7 @@ class View extends \OC\Files\View{ if (!$ownerView->is_dir(self::DOCUMENTS_DIRNAME)) { $ownerView->mkdir(self::DOCUMENTS_DIRNAME); } - return $ownerView; + return new View('/' . $owner . self::DOCUMENTS_DIRNAME); } public function getFilePermissions($path){