Answers for "python extract filename from path without extension"

0

get just filename without extension from the path python

from pathlib import Path

Path('/root/dir/sub/file.ext').stem
Posted by: Guest on October-29-2020

Code answers related to "python extract filename from path without extension"

Python Answers by Framework

Browse Popular Code Answers by Language