Function files_all

Source
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 - A PathBuf to the directory to search.
  • extension - An Option containing a string slice representing the file extension to search for.
  • ignore - An Option 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.