Path::extension
The extension of this path, if this path is a file whose name
includes a ".".
Source Codepublic method extension(this: Path): Option<String> {
let name = match this.file_name() {
Some(name) => name
None => return None
}
name.split(".").last()
}