Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get filename without extension

#Using pathlib in Python 3.4+
from pathlib import Path
Path('/root/dir/sub/file.ext').stem
 
PREVIOUS NEXT
Tagged: #python #filename #extension
ADD COMMENT
Topic
Name
8+4 =