pub fn files_all(
path: PathBuf,
extension: Option<&str>,
ignore: Option<String>,
) -> Vec<PathBuf>
Expand description
Returns a vector of PathBuf
containing all files in a directory that match the given extension and do not match the ignore pattern.
§Arguments
path
- APathBuf
to the directory to search.extension
- AnOption
containing a string slice representing the file extension to search for.ignore
- AnOption
containing a string representing a regex pattern to ignore files matching.
§Returns
A Vec
containing PathBuf
values of all files in the given directory that match the given extension and do not match the ignore pattern.