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

Method encodePath

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

Source from the content-addressed store, hash-verified

369 }
370
371 private static function encodePath(string $path): string
372 {
373 $trimmed = trim($path, '/');
374 if ($trimmed === '') {
375 return '';
376 }
377 $parts = array_map('rawurlencode', explode('/', $trimmed));
378 return implode('/', $parts);
379 }
380
381 private function buildUrlForRelative(string $rel): string
382 {

Callers 2

buildBaseUriMethod · 0.95
buildUrlForRelativeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected