fn walk_paths<P: AsRef<Path>>(&mut self, entry: P, query: &str) {
        let entry = entry.as_ref();
        match self.checker.check(entry) {
            Outcome::UnwantedPath => (),
            Outcome::BundlePath => self.filter_output_path(entry, query),
            Outcome::NormalPath => {
                let mut read_folder = match read_dir(&entry) {
                    Ok(read_folder) => read_folder,
                    Err(err) => {
                        eprintln!("Read folder error: {}", err);
                        return;
                    }
                };
                while let Some(Ok(path)) = read_folder.next() {
                    self.walk_paths(path.path(), query);
                }
            }
        }
    }
/// Recursively iterate through files and folders, and return all legit file paths
Recursively iterate through files and folders, and return all legit file paths
Recursively iterate through files and folders and return all legit file paths
fn walk_paths<P: AsRef<Path>>(&mut self, entry: P, query: &str) {
        let entry = entry.as_ref();
        match self.checker.check(entry) {
            Outcome::UnwantedPath => (),
            Outcome::BundlePath => self.filter_output_path(entry, query),
            Outcome::NormalPath => {
                let mut read_folder = match read_dir(&entry) {
                    Ok(read_folder) => read_folder,
                    Err(err) => {
                        eprintln!("Read folder error: {}", err);
                        return;
                    }
                };
                while let Some(Ok(path)) = read_folder.next() {
                    self.walk_paths(path.path(), query);
                }
            }
        }
    }
fn walk_paths < P : AsRef < Path > > ( & mut self , entry : P , query : & str ) { let entry = entry . as_ref ( ) ; match self . checker . check ( entry ) { Outcome :: UnwantedPath => ( ) , Outcome :: BundlePath => self . filter_output_path ( entry , query ) , Outcome :: NormalPath => { let mut read_folder = match read_dir ( & entry ) { Ok ( read_folder ) => read_folder , Err ( err ) => { eprintln ! ( " " err ) ; return ; } } ; while let Some ( Ok ( path ) ) = read_folder . next ( ) { self . walk_paths ( path . path ( ) , query ) ; } } } }
Recursively iterate through files and folders, and return all legit file paths
Recursively iterate through files and folders and return all legit file paths
&mut self
entry
P
query
&str