op Path./
Joins a path and a segment with / (an absolute b replaces a).
Example:
use std.io { Path }
fn main() io {
print((Path.of("a") / "b" / "c.txt").show())
}Output
a/b/c.txt
pub(api) static op /(a: Path, b: str) -> PathSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
a | Path |
b | str |
Returns
Effects
none declared (pure unless the body says otherwise)
Defined in: std/io/io.oxl:879