Use pathlib's Path.stem to get filename without extension.
Watch video How to get filename without extension from path in Python online without registration, duration hours minute second in high quality. This video was added by user ModernPython 28 September 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 320 once and liked it 6 people.