<a href='#simple-usage'>Simple usage</a></h2>
<p>Path manipulation includes both parsing components from slices and building
new owned paths.</p>

<p>To parse a path, you can create a <code>Path</code> slice from a <code>str</code>
slice and start asking questions:</p>
<span class='rusttest'>fn main() {
    use std::path::Path;
    
    let path = Path::new(&quot;/tmp/foo/bar.txt&quot;);
    let file = path.file_name();
    let extension = path.extension();
    let parent_dir = path.parent();
    
}</span><