Answers for "how to get os basename with file extension in python"

0

file base name and extension python

from pathlib import Path

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

Code answers related to "how to get os basename with file extension in python"

Python Answers by Framework

Browse Popular Code Answers by Language