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