Exemplo n.º 1
0
        public bool IsMatch(string fileName)
        {
            fileName = PathHelper.NormalizeFilePath(fileName);

            return(Includes.Any(include => include.IsMatch(fileName) && Excludes.All(exclude => !exclude.IsMatch(fileName))));
        }
Exemplo n.º 2
0
        public bool IsExcluded(string fileName)
        {
            fileName = PathHelper.NormalizeFilePath(fileName);

            return(Excludes.Any(exclude => exclude.IsMatch(fileName)));
        }