pub fn files_all(path: PathBuf, extensions: Option<Vec<&str>>) -> Vec<PathBuf>
Expand description
Returns a vector of PathBuf
containing all files in a directory that match at least one of the given extensions.
§Arguments
path
- APathBuf
to the directory to search.extensions
- AnOption
containing a list of string slice(s) representing the file extension(s) to search for.
§Returns
A Vec
containing PathBuf
values of all files in the given directory that match at least one of the given extensions.