1use typed_path::TypedPath;
23fn main() {
4// Try to be smart to figure out the path (Unix or Windows) automatically
5let path = TypedPath::derive(r"/path/to/file.txt");
67for component in path.components() {
8println!("{}", String::from_utf8_lossy(component.as_bytes()));
9 }
10}