file names longer than MAX_PATH under Windows 2003

Sergey s323 at mail.ru
Tue Feb 14 06:29:44 EST 2006


Hello.

I try to open file with pathname length 282 bytes:
E:\files\..................\something.dat

On MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp) described method to access 
files with path length
up to 32000 bytes: just add prefix \\?\ to file name.
But when I try to pass prefixed name to file(), I get the same result as when I don't add the prefix: file not found. May be Python 
just doesn't support long unicode filenames?
Is there way to open such files?





More information about the Python-list mailing list