Skip to main content

matches_file_filter

Function matches_file_filter 

Source
pub fn matches_file_filter(path: &Path, filter: &FileFilter) -> Result<bool>
Expand description

Check if a file matches the specified file filter

This function applies custom filtering logic based on the FileFilter enum.

§Arguments

  • path - Path to the file to check
  • filter - The file filter to apply

§Returns

Returns true if the file matches the filter, false otherwise.