The final component's last suffix, if any. This includes the leading period. For example: '.txt'
>>> PurePosixPath('my/library/setup.py').suffix '.py' >>> PurePosixPath('my/library.tar.gz').suffix '.gz' >>> PurePosixPath('my/library').suffix ''
pathlib/PurePath.suffix
PurePath.suffix