PurePath.anchor property
pathlib-ts > PurePath > anchor
PurePath.anchor property
Section titled “PurePath.anchor property”The concatenation of the drive and root, or ”.
Signature:
get anchor(): string;Remarks
Section titled “Remarks”The anchor uniquely identifies the starting point of the path, allowing callers to detect rooted inputs before manipulating relative segments.