MCPcopy Create free account
hub / github.com/error311/FileRise / propFind

Method propFind

src/FileRise/Storage/WebDavAdapter.php:417–433  ·  view source on GitHub ↗
(string $path, int $depth)

Source from the content-addressed store, hash-verified

415 }
416
417 private function propFind(string $path, int $depth): array
418 {
419 $url = $this->buildUrlForPath($path);
420 if ($url === '') {
421 return [];
422 }
423 try {
424 return $this->client->propFind($url, [
425 '{DAV:}displayname',
426 '{DAV:}resourcetype',
427 '{DAV:}getcontentlength',
428 '{DAV:}getlastmodified',
429 ], $depth);
430 } catch (Throwable $e) {
431 return [];
432 }
433 }
434
435 private function getListCache(string $rel): ?array
436 {

Callers 2

listMethod · 0.95
statMethod · 0.95

Calls 1

buildUrlForPathMethod · 0.95

Tested by

no test coverage detected