pub fn has_extension<P: AsRef<Path>>(path: P, extension: &str) -> bool
Returns true if the filename at path has the extension extension.
path
extension