pub fn is_valid_path( entry_path: &str, extension: Option<&str>, ignore_regexes: &[(Regex, bool)], extensions: &[String] ) -> bool