subPathMatch

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

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

Parameters

parentPath string

Path of the parent directory.

glob 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