return win32api.GetShortPathName(os.path.join(short_dirname, basename))
try:
    mtime = os.path.getmtime(name)
except FileNotFoundError:
    name = short_name(name)
mtime = os.path.getmtime(name)
Unable to locate files with long names on Windows with Python