method default.PlatformPath.matchesGlob
Jump to headingPlatformPath.matchesGlob(path: string,pattern: string,): booleanThe path.matchesGlob() method determines if path matches the pattern.
Parameters Jump to heading
Jump to headingpath: stringThe path to glob-match against.
Jump to headingpattern: stringThe glob to check the path against.
Return Type Jump to heading
booleanWhether or not the path matched the pattern.
Throws Jump to heading
TypeErrorif path or pattern are not strings.