How do I obtain the short path of a file in Windows using python ?
I am using the following code ,
#!/usr/bin/python import os import sys fileList =
import win32api long_file_name='C:\Program Files\I am a file' short_file_name=win32api.GetShortPathName(long_file_name)