How do I get the filename without the extension from a path in Python?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
You must login to ask question.
Use
.stem
frompathlib
in Python 3.4+will return
Getting the name of the file without the extension:
Prints:
You can make your own with: