Baseline.FileSet.ExcludedFilesFor C# (CSharp) Method

ExcludedFilesFor() public method

public ExcludedFilesFor ( string path ) : IEnumerable
path string
return IEnumerable
        public IEnumerable<string> ExcludedFilesFor(string path)
        {
            return getAllDistinctFiles(path, Exclude);
        }

Usage Example

コード例 #1
0
ファイル: FileSystem.cs プロジェクト: tralivali1234/baseline
        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);
        }