OxL Reference

method Path.stem

File name without the extension (a.tar.gz -> a.tar).

Example:

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

fn main() io {
  print(Path.of("/src/main.oxl").stem())
}
Output
main
pub(api) fn stem() -> str

Since. 1.0.0-beta

Returns

str

Effects

none declared (pure unless the body says otherwise)

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

See also