pub fn find_files<'a>(
    pattern: &'a str,
    root: &Path,
    recursive: bool
) -> impl Iterator<Item = PathBuf> + 'a
Expand description

Recursively find all files in root dir with given file name matching regex pattern. If not recursive, only files in root dir will be returned.