General

Profile

elovelan (Eric Loveland)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 0 0

Activity

04/16/2014

11:49 AM Ruby Bug #7821: FileUtils.mkdir_p fails on Windows Unicode paths (\\?\UNC\) if dir already exists
This is actually due to a bug in File.directory?
~~~
File.directory?("\\\\?\\C:")
~~~
returns false. New bug for this?
elovelan (Eric Loveland)
11:19 AM Ruby Bug #7822: Dir.mkdir can't handle long Windows Unicode paths (\\?\UNC\)
I would recommend that this bug be closed. However, I have not found any feature requests for better support of "\\\\?\\". Is it worth submitting one or would this be better handled with a gem? elovelan (Eric Loveland)
03:36 AM Ruby Bug #7822: Dir.mkdir can't handle long Windows Unicode paths (\\?\UNC\)
The linked article mentions that each component (individual folder in the path) can have a maximum of 255 characters.
The following works:
~~~
Dir.mkdir "\\\\?\\C:\\#{'t'*255}"
Dir.mkdir "\\\\?\\C:\\#{'t'*255}\\#{'t'*255}"
~~~
...
elovelan (Eric Loveland)

Also available in: Atom