Function should_exclude
Source pub fn should_exclude(
path: &Path,
root: &Path,
exclude_patterns: &[String],
) -> bool
Expand description
判断一个路径是否应该被排除(基于排除规则)
path: 要检查的路径
excludes: 排除规则列表(支持通配符和正则)
§规则支持
*.tmp → 所有 .tmp 文件
/temp/ → 包含 temp 的路径
todo - 将来可扩展为正则表达式