/// Determine if the given path should be ignored, given the settings.
Determine if the given path should be ignored, given the settings.
Determine if the given path should be ignored given the settings .
fn should_ignore<P: AsRef<Path>>(&self, metadata: &fs::Metadata, path: P) -> bool {
		let identifier = FileIdentifier {
			devid: metadata.dev(),
			inode: metadata.ino(),
		};
		if self.inode_ignore_list.contains(&identifier) {
			return true;
		}
		if metadata.is_dir() && self.path_ignore_list.contains(path.as_ref()) {
			return true;
		}
		false
	}
fn should_ignore < P : AsRef < Path > > ( & self , metadata : & fs :: Metadata , path : P ) -> bool { let identifier = FileIdentifier { devid : metadata . dev ( ) , inode : metadata . ino ( ) , } ; if self . inode_ignore_list . contains ( & identifier ) { return true ; } if metadata . is_dir ( ) && self . path_ignore_list . contains ( path . as_ref ( ) ) { return true ; } false }
Determine if the given path should be ignored, given the settings.
Determine if the given path should be ignored given the settings .
&self
metadata
&fs::Metadata
path
P