pub fn extension<P: AsRef<Path>>(path: P) -> Option<String>
Get the file extension (works with &str, &String, &Path, &PathBuf)