The final path component, if any.
>>> PurePosixPath('my/library/setup.py').name 'setup.py'
pathlib/PurePath.name
PurePath.name