Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python extract extension

import os
file_details = os.path.splitext('/path/file.ext')
print(file_details)
print(file_details[1])
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #extract #extension
ADD COMMENT
Topic
Name
5+2 =