Search
 
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
Name
7+3 =