I have the following code:
os.listdir(\"staging\") # Seperate filename from extension sep = os.sep # Change the casing for n in os.listdir(\"staging\"):
import os pathname ='c:\\hello\\dickins\\myfile.py' head, tail = os.path.split(pathname) print head print tail