Skip to content

Commit 12cbc2b

Browse files
juliusknorrsummersab
authored andcommitted
fix: Use passed LazyFolder when building sabre nodes
Signed-off-by: Julius Härtl <[email protected]>
1 parent 8fa15e1 commit 12cbc2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: apps/dav/lib/Connector/Sabre/Node.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
use OC\Files\Mount\MoveableMount;
3939
use OC\Files\Node\File;
4040
use OC\Files\Node\Folder;
41+
use OC\Files\Node\LazyFolder;
4142
use OC\Files\View;
4243
use OCA\DAV\Connector\Sabre\Exception\InvalidPath;
4344
use OCP\Files\DavUtil;
@@ -88,7 +89,7 @@ public function __construct(View $view, FileInfo $info, IManager $shareManager =
8889
} else {
8990
$this->shareManager = \OC::$server->getShareManager();
9091
}
91-
if ($info instanceof Folder || $info instanceof File) {
92+
if ($info instanceof Folder || $info instanceof File || $info instanceof LazyFolder) {
9293
$this->node = $info;
9394
} else {
9495
$root = \OC::$server->get(IRootFolder::class);

0 commit comments

Comments
 (0)