pub fn get_matching_files<P: AsRef<Path>>(
dirname: P,
include_patterns: &[String],
exclude_patterns: &[String],
) -> Result<Vec<PathBuf>, Box<dyn Error>>Expand description
Gets matching files from a directory using include and exclude patterns.
This function implements the same logic as Sphinx’s get_matching_files:
- Only files matching some pattern in include_patterns are included
- Exclusions from exclude_patterns take priority over inclusions
- The default include pattern is “**” (all files)
- The default exclude pattern is empty (exclude nothing)