DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+5 =
Submit