OxL Reference

op Path./

Joins a path and a segment with / (an absolute b replaces a).

Example:

oxl✓ checked in CI
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) -> Path

Since. 1.0.0-beta

Parameters

NameType
aPath
bstr

Returns

Path

Effects

none declared (pure unless the body says otherwise)

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

See also