fix: Use passed LazyFolder when building sabre nodes

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/36589/head
Julius Härtl 2023-02-17 19:21:05 +07:00
parent ec356504ea
commit 3bdf3322ec
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 2 additions and 1 deletions

@ -38,6 +38,7 @@ namespace OCA\DAV\Connector\Sabre;
use OC\Files\Mount\MoveableMount;
use OC\Files\Node\File;
use OC\Files\Node\Folder;
use OC\Files\Node\LazyFolder;
use OC\Files\View;
use OCA\DAV\Connector\Sabre\Exception\InvalidPath;
use OCP\Files\DavUtil;
@ -88,7 +89,7 @@ abstract class Node implements \Sabre\DAV\INode {
} else {
$this->shareManager = \OC::$server->getShareManager();
}
if ($info instanceof Folder || $info instanceof File) {
if ($info instanceof Folder || $info instanceof File || $info instanceof LazyFolder) {
$this->node = $info;
} else {
$root = \OC::$server->get(IRootFolder::class);