ExcludedFilesFor() public method

public ExcludedFilesFor ( string path ) : IEnumerable
path string
return IEnumerable
Esempio n. 1
0
        public IEnumerable <string> FindFiles(string directory, FileSet searchSpecification)
        {
            var excluded = searchSpecification.ExcludedFilesFor(directory).ToArray();
            var files    = searchSpecification.IncludedFilesFor(directory).ToList();

            files.RemoveAll(s => excluded.Contains(s));

            return(files);
        }