A string representing the final path component, excluding the drive and root, if any:
PurePath.name
>>> PurePosixPath('my/library/setup.py').name
'setup.py'
>>> PureWindowsPath('//some/share/setup.py').name
'setup.py'
>>> PureWindowsPath('//some/share').name
''