Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python drop extension

>>> print(os.path.splitext(os.path.basename("/path/to/file/hemanth.txt"))[0])
hemanth
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #drop #extension
ADD COMMENT
Topic
Name
5+3 =