fn is_ignored(ignore : &Option<Regex>, path : &Path) -> bool {
	match ignore {
		None => false,
		Some(re) => {
			match path.to_str() {
				None => false,
				Some(path) => {
					if path.len() == 0 {
						false
					} else {
						re.is_match(path)
					}
				},
			}
		},
	}
}
/// Checks if a given path is ignored
///
/// # Arguments
/// * `ignore` - The ignore regex, if set
/// * `path`   - Path to check against the ignore regex
///
/// # Returns
/// * `true`  - If the path matches the regex
/// * `false` - If the regex and path don't match, if no ignore
///             regex was given, or if the path is empty
Checks if a given path is ignored
Checks if a given path is ignored
fn is_ignored(ignore : &Option<Regex>, path : &Path) -> bool {
	match ignore {
		None => false,
		Some(re) => {
			match path.to_str() {
				None => false,
				Some(path) => {
					if path.len() == 0 {
						false
					} else {
						re.is_match(path)
					}
				},
			}
		},
	}
}
fn is_ignored ( ignore : & Option < Regex > , path : & Path ) -> bool { match ignore { None => false , Some ( re ) => { match path . to_str ( ) { None => false , Some ( path ) => { if path . len ( ) == 0 { false } else { re . is_match ( path ) } } , } } , } }
Checks if a given path is ignored
Checks if a given path is ignored
`true`  - If the path matches the regex
`false` - If the regex and path don't match, if no ignore
regex was given, or if the path is empty
` true ` - If the path matches the regex ` false ` - If the regex and path don ' t match if no ignore regex was given or if the path is empty
ignore
&Option<Regex>
path
&Path