true if pattern matches path, false otherwise.
See_also: Wikipedia: _glob (programming)
bool globMatch(CaseSensitive cs = CaseSensitive.osDefault, C, Range)(Range path, const(C)[] pattern) if (isForwardRange!Range && !isInfinite!Range &&
isSomeChar!(ElementEncodingType!Range) && !isConvertibleToString!Range &&
isSomeChar!C && is(immutable C == immutable ElementEncodingType!Range)) @safe pure nothrowMatches a pattern against a path.
Some characters of pattern have a special meaning (they are meta-characters) and can't be escaped. These are:
| `*` | Matches 0 or more instances of any character. |
| `?` | Matches exactly one instance of any character. |
| `chars`">!`chars`` | Matches one instance of any character that does not
appear between the brackets after the exclamation mark. |
| `{`string1`,`string2`,`…`}` | Matches either of the specified strings. |
Individual characters are compared using filenameCharCmp!cs, where cs is an optional template parameter determining whether the comparison is case sensitive or not. See the filenameCharCmp documentation for details.
Note that directory separators and dots don't stop a meta-character from matching further portions of the path.
cs | Whether the matching should be case-sensitive |
path | The path to be matched against |
pattern | The glob pattern |
bool globMatch(CaseSensitive cs = CaseSensitive.osDefault, C, Range)(auto ref Range path, const(C)[] pattern) if (isConvertibleToString!Range) @safe pure nothrow