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)
}Вывод
/usr/lib
pub(api) fn join(other: str) -> PathС версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
other | str |
Возвращает
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/io/io.oxl:848