Skip to content

PurePath.isAbsolute() method

pathlib-ts > PurePath > isAbsolute

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.

Matches CPython semantics and honours the active parser.