<filename>Traditional/split_path.py
#!/usr/bin/env python3
import os
from posixpath import normpath
path = "///data/video/project1//"
normalized_path = os.path.normpath(path)
sep_path = normalized_path.split(os.sep)
path_tail = sep_path[-1] #last word in path - need to be volume name
currentPath = ''
for folder in sep_path:
    if folder:
        currentPath += "/"+folder
        print (currentPath)


<filename>Traditional/split_path.py
#!/usr/bin/env python3
import os
from posixpath import normpath
path = "///data/video/project1//"
normalized_path = os.path.normpath(path)
sep_path = normalized_path.split(os.sep)
path_tail = sep_path[-1] #last word in path - need to be volume name
currentPath = ''
for folder in sep_path:
    if folder:
        currentPath += "/"+folder
        print (currentPath)


#!/usr/bin/env python3 #last word in path - need to be volume name