FileSet.

Find(string, string, IEnumerable<string>, bool) Method

Summary

Gets a fileset by FileSetSettings
Assembly
Cake.FileSet.dll
Namespace
Cake.FileSet
Containing Type
FileSet

Syntax

public static IEnumerable<FilePath> Find(string basePath, string include, IEnumerable<string> excludes = null, bool caseSensitive = false)

Examples

IEnumerable>FilePath< filePaths = FileSet.Find("D:\code\git\Cake.FileSet", new string[] { "/src/**/*.csproj" } , new string[] { "/src/**/*.Test.csproj" }, false);

Parameters

Name Type Description
basePath string Base directory to use for the fileset. The working directory is used if null.
include string Pattern to include.
excludes IEnumerable<string> Patterns to exclude.
caseSensitive bool Whether the pattern match is case senstive. Defaults to false.

Return Value

Type Description
IEnumerable<FilePath> Returns an IEnumberable of FilePath that match the input patterns.