use std::path::Path; use std::ffi::OsStr; // Note: this example does work on Windows let path = Path::new("./foo/bar.txt"); let parent = path.parent(); ...
確定! 回上一頁