DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Extract filename from path in Python
filename = os.path.basename("path/to/file/sample.txt")
Source by www.kite.com #
PREVIOUS
NEXT
Tagged:
#Extract
#filename
#path
#Python
ADD COMMENT
Topic
COMMENT
Name
9+3 =
Submit