parent¶
In std/io.
fn parent(self: Path) : Option<Path>
self without its last segment, some(Path), or none for a path of
one segment or a root: Path("a/b").parent() is some(Path("a")), and
Path("a").parent() is none. A root is /, a drive root C:/ or a
share //server/share, on every host: Path("C:/Users").parent() is
some(Path("C:/")).