globMatch

fnbool 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 nothrow

Matches 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

filenameCharCmp documentation for details.

Note that directory separators and dots don't stop a meta-character from matching further portions of the path.

Parameters

csWhether the matching should be case-sensitive
pathThe path to be matched against
patternThe glob pattern

Returns

true if pattern matches path, false otherwise.

See_also:

Wikipedia: _glob (programming)
fnbool globMatch(CaseSensitive cs = CaseSensitive.osDefault, C, Range)(auto ref Range path, const(C)[] pattern) if (isConvertibleToString!Range) @safe pure nothrow
No documentation available for this declaration.