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

Microsoft.Extensions.FileSystemGlobbing.FilePatternMatch

Represents a file that was matched by searching using a globbing pattern.
public string Path { get; }

Gets the path to the matched file, relative to the beginning of the matching search pattern.

public string Stem { get; }

Gets the subpath to the matched file, relative to the first wildcard in the matching search pattern.

public FilePatternMatch(string path, string stem)

Initializes new instance of FilePatternMatch.

public bool Equals(FilePatternMatch other)

Determines if the specified match is equivalent to the current match using a case-insensitive comparison.