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

Method joinPath

src/FileRise/Storage/SourceHealth.php:24–35  ·  view source on GitHub ↗
(string $base, string $child)

Source from the content-addressed store, hash-verified

22 }
23
24 private static function joinPath(string $base, string $child): string
25 {
26 $left = rtrim($base, "/\\");
27 $right = ltrim($child, "/\\");
28 if ($left === '') {
29 return $right;
30 }
31 if ($right === '') {
32 return $left;
33 }
34 return $left . DIRECTORY_SEPARATOR . $right;
35 }
36
37 private static function adapterError($adapter): string
38 {

Callers 1

checkMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected