Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get data after last slash in python

os.path.basename(os.path.normpath('/folderA/folderB/folderC/folderD/'))
>>> folderD
use this to get last value
 
PREVIOUS NEXT
Tagged: #data #slash #python
ADD COMMENT
Topic
Name
2+9 =