OxL Reference

method Path.of

The path with this text.

Example:

oxl✓ checked in CI
use std.io { Path }

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

Since. 1.0.0-beta

Parameters

NameType
textstr

Returns

Path

Effects

none declared (pure unless the body says otherwise)

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

See also