Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

what does filename = path(file).stem python

from pathlib import Path

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

# returns 'file'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #filename #python
ADD COMMENT
Topic
Name
8+9 =