<PackageReference Include="Microsoft.Extensions.FileSystemGlobbing" Version="10.0.2" />

Microsoft.Extensions.FileSystemGlobbing.MatcherExtensions

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

Adds multiple exclude patterns to Matcher.

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

Adds multiple patterns to include in Matcher.

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

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

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

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)

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

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

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)

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