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: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
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