

# https://www.globalsino.com/ICs/
# split a dos path into its components, and then print the list


import os

thePath = r"C:\0Python\Papers\TestFolder1\TestFolder2\2106.09308.pdf"

path = os.path.normpath(thePath)

pathList = path.split(os.sep)

print(pathList)
print("\n")
print("There are ", len(pathList), "components in the list:")

for i in range(len(pathList)):
    print(pathList[i])




