public bool PassesGlobalExcludes(string path, MatchReason reason)
{
// it must not match any global exclude
foreach (GlobalExcludeFiltersRow row in GlobalExcludeFilters)
{
FileMask wildcard = new FileMask(row.Mask);
if (wildcard.IsMatch(path))
{
reason.Set(row.Mask, MatchReason.Status.Excluded);
return(false);
}
}
return(true);
}