Skip to content

PurePath.suffixes property

pathlib-ts > PurePath > suffixes

Lists all suffixes (extensions) attached to the final path component, if any.

Signature:

get suffixes(): string[];

Useful for detecting compound extensions like .tar.gz. The behaviour matches CPython and keeps case sensitivity aligned with the underlying parser.