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 name without dir
>>> os.path.basename('/path_name/1.log,/path_name/2.log') '2.log'
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#file
#dir
ADD COMMENT
Topic
COMMENT
Name
3+7 =
Submit