OxL Справочник OxL
РусскийEnglish

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:

oxl✓ проверяется в CI
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

Параметры

ИмяТип
otherstr

Возвращает

Path

Эффекты

не объявлены (чистая, пока тело не говорит иное)

Определено в: std/io/io.oxl:848

См. также