Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get file extension from path

import os.path
extension = os.path.splitext(filename)[1]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #file #extension #path
ADD COMMENT
Topic
Name
1+5 =