Answers for "get just filename without extension from the path python"

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 "get just filename without extension from the path python"

Python Answers by Framework

Browse Popular Code Answers by Language