mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
reuse the userfolder's fileinfo when possible during dav setup
This commit is contained in:
parent
1c3b1e5797
commit
7c4d9add0d
1 changed files with 6 additions and 1 deletions
|
|
@ -29,6 +29,7 @@
|
|||
|
||||
namespace OCA\DAV\Connector\Sabre;
|
||||
|
||||
use OC\Files\Node\Folder;
|
||||
use OCA\DAV\Files\BrowserErrorPagePlugin;
|
||||
use OCP\Files\Mount\IMountManager;
|
||||
use OCP\IConfig;
|
||||
|
|
@ -135,7 +136,11 @@ class ServerFactory {
|
|||
|
||||
/** @var \OC\Files\View $view */
|
||||
$view = $viewCallBack($server);
|
||||
$rootInfo = $view->getFileInfo('');
|
||||
if ($userFolder instanceof Folder && $userFolder->getPath() === $view->getRoot()) {
|
||||
$rootInfo = $userFolder;
|
||||
} else {
|
||||
$rootInfo = $view->getFileInfo('');
|
||||
}
|
||||
|
||||
// Create ownCloud Dir
|
||||
if ($rootInfo->getType() === 'dir') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue