PurePath.suffixes property
pathlib-ts > PurePath > suffixes
PurePath.suffixes property
Section titled “PurePath.suffixes property”Lists all suffixes (extensions) attached to the final path component, if any.
Signature:
get suffixes(): string[];Remarks
Section titled “Remarks”Useful for detecting compound extensions like .tar.gz. The behaviour matches CPython and keeps case sensitivity aligned with the underlying parser.