Property Pattern
Pattern
List only the entries whose name matches this shell-style pattern; null (the default) lists every entry. matches any run
of characters, ? any one character, and [...] one character of a set: [abc], a range [0-9], or a
negated set [!a-z] (or [^a-z]); </code> takes the next character literally. The match is on the whole name (not
the path) and case-sensitive, as on the POSIX file systems most servers have. Unlike a shell, and ? also match a
leading dot, so includes hidden files. In a recursive listing the pattern selects the entries returned, not the
directories descended into: .log finds the log files at every level, as find -name does.
public string? Pattern { get; init; }
Property Value
Remarks
Matching is by Unicode code point, so ? matches one character outside the Basic Multilingual Plane (an emoji, say). A
[ without a closing ] matches itself, as in fnmatch(3); POSIX named classes ([[:digit:]]) are not supported.
IgnoreCase matches without regard to case.