Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: Use passed LazyFolder when building sabre nodes
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Feb 17, 2023
commit 3bdf3322ec208152dc3393b0076f076b8e9aaff2
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