PyDocs

Nav

File and Directory Access

PurePath.name

pathlib

attribute of PurePath (source)
The final path component, if any.
1 Example
>>> PurePosixPath('my/library/setup.py').name
'setup.py'
from the Python docs
See Also
No see-alsos for pathlib/PurePath.name
0 Notes
No notes for PurePath.name