PurePath.name
A string representing the final path component, excluding the drive and root, if any:
1 2 | >>> PurePosixPath( 'my/library/setup.py' ).name 'setup.py' |
UNC drive names are not considered:
1 2 3 4 | >>> PureWindowsPath( '//some/share/setup.py' ).name 'setup.py' >>> PureWindowsPath( '//some/share' ).name '' |
Please login to continue.