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

Method relativePath

src/FileRise/Storage/WebDavAdapter.php:396–404  ·  view source on GitHub ↗
(string $path)

Source from the content-addressed store, hash-verified

394 }
395
396 private function relativePath(string $path): string
397 {
398 $p = str_replace('\\', '/', $path);
399 $root = $this->localRoot;
400 if ($root !== '' && str_starts_with($p, $root)) {
401 $p = substr($p, strlen($root));
402 }
403 return ltrim($p, '/');
404 }
405
406 private function hrefToRelative(string $href): string
407 {

Callers 5

listMethod · 0.95
statMethod · 0.95
mkdirMethod · 0.95
buildUrlForPathMethod · 0.95
ensureParentExistsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected