windows_utf8/
windows_utf8.rs

1use typed_path::{Utf8Component, Utf8WindowsPath};
2
3fn main() {
4    let path = Utf8WindowsPath::new(r"C:\path\to\file.txt");
5
6    for component in path.components() {
7        println!("{}", component.as_str());
8    }
9}