Skip to content

Commit

Permalink
fix: Use passed LazyFolder when building sabre nodes
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr authored and summersab committed Jun 26, 2023
1 parent 29e11d2 commit 9e2e502
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/dav/lib/Connector/Sabre/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
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;
Expand Down Expand Up @@ -88,7 +89,7 @@ public function __construct(View $view, FileInfo $info, IManager $shareManager =
} 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);
Expand Down

0 comments on commit 9e2e502

Please sign in to comment.