PurePath.fullMatch() method
pathlib-ts > PurePath > fullMatch
PurePath.fullMatch() method
Section titled “PurePath.fullMatch() method”Tests whether the entire path matches a glob-style pattern.
Signature:
fullMatch(pattern: PathLike, options?: { caseSensitive?: boolean; }): boolean;Parameters
Section titled “Parameters”|
Parameter |
Type |
Description |
|---|---|---|
|
pattern |
Glob-style pattern to check. Accepts strings or other pure paths. | |
|
options |
{ caseSensitive?: boolean; } |
(Optional) Optional case sensitivity override. |
Returns:
boolean
true when the entire path matches the pattern.
Remarks
Section titled “Remarks”Case sensitivity defaults to the flavour (POSIX vs Windows) but can be overridden. No filesystem access occurs; matching is lexical.