Skip to main content
method default.PlatformPath.matchesGlob
PlatformPath.matchesGlob(
path: string,
pattern: string,
): boolean
Deprecated

The path.matchesGlob() method determines if path matches the pattern.

Parameters

path: string

The path to glob-match against.

pattern: string

The glob to check the path against.

Return Type

boolean

Whether or not the path matched the pattern.

Throws

TypeError

if path or pattern are not strings.

Back to top