(string $base, string $child)
| 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 | { |