PurePath.isAbsolute() method
pathlib-ts > PurePath > isAbsolute
PurePath.isAbsolute() method
Section titled “PurePath.isAbsolute() method”Indicates whether the path is anchored (has a root and optional drive).
Signature:
isAbsolute(): boolean;Returns:
boolean
true when the path has a root (and drive for Windows), otherwise false.
Remarks
Section titled “Remarks”Matches CPython semantics and honours the active parser.