[win32] Long path name support for directory creation/lookup

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[win32] Long path name support for directory creation/lookup

marcel.taeumel
Hi, there!

I just discovered that the "sqWin32Directory.c" is not located in in the plugins (FilePlugin) but the vm folder. And hence I missed to add support for UNC paths there, too. That's why unzipping big things from GitHub (e.g. metacello-work) does not work. Directories have to be created first. Only then files are created.

I plan to fix this. Hopefully until Monday.

Best,
Marcel
Reply | Threaded
Open this post in threaded view
|

Re: [win32] Long path name support for directory creation/lookup

marcel.taeumel
Hi, there!

I added support for creating, navigating, and deleting long paths in Windows.

sqWin32Directory.c
sqWin32File.h
sqWin32FilePrims.c

Warning: I did not use the safe versions wcscp_s but only wcscp because the Windows build environment is not up-to-date. I am in touch with Eliot about this. We plan to fix this in the future.

Here is CogVM 3343 with that code in it:
3343_longpaths.zip

Best,
Marcel
Reply | Threaded
Open this post in threaded view
|

Re: [win32] Long path name support for directory creation/lookup

marcel.taeumel
Okay, it's still experimental. Hunting another bug/crash right now...

Best,
Marcel
Reply | Threaded
Open this post in threaded view
|

Re: [win32] Long path name support for directory creation/lookup

marcel.taeumel
Sorry for the noise. Here is a build that works: 3343_longpaths.zip

Best,
Marcel