OxL Reference

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✓ checked in CI
use std.io { Path }

fn main() io {
  print(Path.of("/usr").join("lib").text)
}
Output
/usr/lib
pub(api) fn join(other: str) -> Path

Since. 1.0.0-beta

Parameters

NameType
otherstr

Returns

Path

Effects

none declared (pure unless the body says otherwise)

Defined in: std/io/io.oxl:848

See also