PurePath.stem
The final path component, without its suffix:
1 2 3 4 5 6 | >>> PurePosixPath( 'my/library.tar.gz' ).stem 'library.tar' >>> PurePosixPath( 'my/library.tar' ).stem 'library' >>> PurePosixPath( 'my/library' ).stem 'library' |
PurePath.stem
The final path component, without its suffix:
1 2 3 4 5 6 | >>> PurePosixPath( 'my/library.tar.gz' ).stem 'library.tar' >>> PurePosixPath( 'my/library.tar' ).stem 'library' >>> PurePosixPath( 'my/library' ).stem 'library' |
Designed by : w10schools
service@w10schools.com
Please login to continue.