Table of Contents

Class MatcherExtensions

Namespace
Acuit.Pinpoint.FileSystemGlobbing
Assembly
Acuit.Pinpoint.Configuration.dll
public static class MatcherExtensions
Inheritance
MatcherExtensions
Inherited Members

Methods

AddExcludePatterns(Matcher, params IEnumerable<string>[])

Adds multiple exclude patterns to Matcher. AddExclude(string)

public static void AddExcludePatterns(this Matcher matcher, params IEnumerable<string>[] excludePatternsGroups)

Parameters

matcher Matcher

The matcher to which the exclude patterns are added

excludePatternsGroups IEnumerable<string>[]

A list of globbing patterns

AddIncludePatterns(Matcher, params IEnumerable<string>[])

Adds multiple patterns to include in Matcher. See AddInclude(string)

public static void AddIncludePatterns(this Matcher matcher, params IEnumerable<string>[] includePatternsGroups)

Parameters

matcher Matcher

The matcher to which the include patterns are added

includePatternsGroups IEnumerable<string>[]

A list of globbing patterns

GetResultsInFullPath(Matcher, string)

Searches the directory specified for all files matching patterns added to this instance of Matcher

public static IEnumerable<string> GetResultsInFullPath(this Matcher matcher, string directoryPath)

Parameters

matcher Matcher

The matcher

directoryPath string

The root directory for the search

Returns

IEnumerable<string>

Absolute file paths of all files matched. Empty enumerable if no files matched given patterns.

Match(Matcher, IEnumerable<string>)

Matches the files passed in with the patterns in the matcher without going to disk.

public static PatternMatchingResult Match(this Matcher matcher, IEnumerable<string> files)

Parameters

matcher Matcher

The matcher that holds the patterns and pattern matching type.

files IEnumerable<string>

The files to run the matcher against.

Returns

PatternMatchingResult

The match results.

Match(Matcher, string)

Matches the file passed in with the patterns in the matcher without going to disk.

public static PatternMatchingResult Match(this Matcher matcher, string file)

Parameters

matcher Matcher

The matcher that holds the patterns and pattern matching type.

file string

The file to run the matcher against.

Returns

PatternMatchingResult

The match results.

Match(Matcher, string, IEnumerable<string>)

Matches the files passed in with the patterns in the matcher without going to disk.

public static PatternMatchingResult Match(this Matcher matcher, string rootDir, IEnumerable<string> files)

Parameters

matcher Matcher

The matcher that holds the patterns and pattern matching type.

rootDir string

The root directory for the matcher to match the files from.

files IEnumerable<string>

The files to run the matcher against.

Returns

PatternMatchingResult

The match results.

Match(Matcher, string, string)

Matches the file passed in with the patterns in the matcher without going to disk.

public static PatternMatchingResult Match(this Matcher matcher, string rootDir, string file)

Parameters

matcher Matcher

The matcher that holds the patterns and pattern matching type.

rootDir string

The root directory for the matcher to match the file from.

file string

The file to run the matcher against.

Returns

PatternMatchingResult

The match results.