pub fn has_extension(name: &str, extensions: &[&str]) -> bool
Check if name has one of the given extensions