Handling paths of length > 260 in Tcl on Windows
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Handling paths of length > 260 in Tcl on Windows

From: ChrisR <offby1@gmail.com>
Date: Fri Apr 28 2006 - 23:29:29 CEST

As the subject suggests, I need to be able to handle long pathnames on
Windows, ones that (although they exceed Explorer's hard limit of 255)
may be nearly-arbitrary in length.

This MSDN article mentions the issue:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp

Basically, right now it looks like the normalized filenames in the Tcl
file libraries are normalized as "<drive>:/<path... >" whereas for this
functionality to work, at the very least, the file and I/O commands
would also have to accept "\\?\<drive>:\<path...>

Is there a workaround for this? I can't be the first person who has
needed this functionality...
Received on Sun Apr 30 03:31:06 2006