method Path.components
Non-empty components (/a//b/ -> a, b).
Example:
use std.io { Path }
fn main() io {
print("{Path.of("a/b/c").components()}")
}Output
["a", "b", "c"]
pub(api) fn components() -> List<str>Since. 1.0.0-beta
Returns
List<str>
Effects
none declared (pure unless the body says otherwise)
Defined in: std/io/io.oxl:1009