windows and file names > 256 bytes
Tim Golden
mail at timgolden.me.uk
Thu Jun 25 08:34:36 EDT 2015
On 25/06/2015 13:04, Joonas Liik wrote:
> It sounds to me more like it is possible to use long file names on windows
> but it is a pain and in python, on windows it is basically impossible.
Certainly not impossible: you could write your own wrapper function:
def extended_path(p):
return r"\\?\%s" % os.path.abspath(p)
where you knew that there was a possibility of long paths and that an
absolute path would work.
TJG
More information about the Python-list
mailing list