Answers for "what does filename = path(file).stem python"

-1

what does filename = path(file).stem python

from pathlib import Path

Path('/root/dir/sub/file.ext').stem

# returns 'file'
Posted by: Guest on June-03-2020

Code answers related to "what does filename = path(file).stem python"

Python Answers by Framework

Browse Popular Code Answers by Language