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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #filename #extension
ADD COMMENT
Topic
Name
6+8 =