summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-02-17 19:21:05 +0100
committerJulius Härtl <jus@bitgrid.net>2023-02-17 19:21:05 +0100
commit3bdf3322ec208152dc3393b0076f076b8e9aaff2 (patch)
tree88a05e5a34914a6133837916af82962303b1dc21 /apps/dav/lib
parentec356504eaadba5411c30e6a06abd8eb177b6b7b (diff)
downloadnextcloud-server-3bdf3322ec208152dc3393b0076f076b8e9aaff2.tar.gz
nextcloud-server-3bdf3322ec208152dc3393b0076f076b8e9aaff2.zip
fix: Use passed LazyFolder when building sabre nodes
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/Connector/Sabre/Node.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Node.php b/apps/dav/lib/Connector/Sabre/Node.php
index ee159cef1d6..b4855eaf341 100644
--- a/apps/dav/lib/Connector/Sabre/Node.php
+++ b/apps/dav/lib/Connector/Sabre/Node.php
@@ -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);