Answers for "get last element path"

0

get last element path

>>> os.path.basename(os.path.normpath('/folderA/folderB/folderC/folderD/'))
'folderD'
Posted by: Guest on November-24-2020

Browse Popular Code Answers by Language