files_all

Function files_all 

Source
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 - A PathBuf to the directory to search.
  • extensions - An Option 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.