method Path.fileName
Last component (a/b.txt -> b.txt; / and the empty path -> empty).
Example:
use std.io { Path }
fn main() io {
print(Path.of("/src/main.oxl").fileName())
}Вывод
main.oxl
pub(api) fn fileName() -> strС версии. 1.0.0-beta
Возвращает
str
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/io/io.oxl:895