mini\Util\Path::join()
Method
public
Signature
public function join(mini\Contracts\PathInterface|Stringable|string $target): mini\Contracts\PathInterface
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$target |
mini\Contracts\PathInterface|Stringable|string |
required | Documentation missing |
Returns
Documentation
Join a target path to this path (lexical operation)
Appends the target path to this path and returns a new Path instance. This is a pure lexical operation with no filesystem access.
Behavior:
- If target is absolute, it replaces this path (except for special Windows cases)
- If target is relative, it's appended to this path
- Result is automatically canonicalized
Windows-specific behavior:
- Absolute target with drive (C:/) fully replaces base
- Rooted target (/foo) on Windows base (E:/...) becomes E:/foo (root of same drive)
- UNC target (//server/share) fully replaces base