subPathMatch

Match path of a directory or a file relative to a parent directory with a glob pattern.

bool
subPathMatch
@safe pure
(
string path
,
string parentPath
,
string glob
)

Parameters

parentPath
Type: string

Path of the parent directory.

glob
Type: string

Glob pattern to match with. If null, a match is assumed.

Return Value

Type: bool

True on match or if glob is null; false otherwise.

Meta