How to get short file path in windows using python?
I am using the following code,
#!/usr/bin/python import os import sys fileList = [] rootdir = sys.argv[1] for root, subFolders, files in os.walk(rootdir): for file in files: fileList.append(os.path.join(root,file)) for File in fileList: print File
python windows filenames path
Gautam
source share