public bool Filter(GlobMatch match)
 {
     foreach (var rule in rules)
     {
         if (rule.Matcher.IsMatch(match.GetPathSegments()))
         {
             return(!rule.Exclude);
         }
     }
     return(false);
 }
 public Match(T item, GlobMatch details)
 {
     Item    = item;
     Details = details;
 }
 public GlobMatcher(Glob glob, bool caseSensitive)
 {
     start = new GlobMatchFactory(caseSensitive).Start(glob);
 }
Exemple #4
0
 public Rule(GlobMatch details, bool exclude)
 {
     Details = details;
     Exclude = exclude;
 }