private bool IgnoreFile(string path) { var filename = Path.GetFileName(path); foreach (var ignoreFile in this.IgnoreFiles) { if (ignoreFile.IsMatch(filename)) { return true; } } return false; }