method Path.join
Path.of("a/b").join("c") is a/b/c; an absolute right side replaces the left; empty parts are ignored.
Example:
use std.io { Path }
fn main() io {
print(Path.of("/usr").join("lib").text)
}Output
/usr/lib
pub(api) fn join(other: str) -> PathSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
other | str |
Returns
Effects
none declared (pure unless the body says otherwise)
Defined in: std/io/io.oxl:848