deno.com
method default.PlatformPath.matchesGlob
#PlatformPath.matchesGlob(
path: string,
pattern: string,
): boolean

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.