Skip to content

Commit f67982e

Browse files
committed
fixup! fix: add INodeByPath to Directory [wip]
Signed-off-by: Salvatore Martire <[email protected]>
1 parent ba89f06 commit f67982e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

apps/dav/lib/Connector/Sabre/Directory.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,9 @@ public function getNode(): Folder {
500500
public function getNodeForPath($path) {
501501
$nodePath = ltrim($this->path, '/');
502502
// path may be a partial path, due to caching in Tree.php
503-
$fullPath = str_starts_with($path, $nodePath) ? $path :
504-
$nodePath . '/' .
505-
$path;
503+
$fullPath = str_starts_with($path, $nodePath) ? $path
504+
: $nodePath . '/'
505+
. $path;
506506

507507
try {
508508
[$destinationDir, $destinationName] = \Sabre\Uri\split($fullPath);
@@ -517,8 +517,8 @@ public function getNodeForPath($path) {
517517
}
518518

519519
if (!$info) {
520-
throw new \Sabre\DAV\Exception\NotFound('File with name ' . $fullPath .
521-
' could not be located');
520+
throw new \Sabre\DAV\Exception\NotFound('File with name ' . $fullPath
521+
. ' could not be located');
522522
}
523523

524524
if ($info->getMimeType() === FileInfo::MIMETYPE_FOLDER) {

0 commit comments

Comments
 (0)