You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand what you are trying to do and I think I tried something similar way back when. It was difficult enough that I gave up and made the decision to work in parallel instead of using a total replacement.
If I have time in the next few weeks I will take this code and see if I can get any further.
Looking at the code I could redefine statL () and lstatL () to return an array in list context. However, openL (), opendirL (), closedirL (), and readdirL () will never be direct replacements for the matching core functions. Will this limited change satisfy your need?
its welcome but not really :)
I didn't realize opendirL/closedirL/readdirL are all methods of a Win32::LongPath object
this makes for a strange vocabulary , mixing oop and functional in an odd way
I really think its good to match the API where ever possible, especially when using the same names
The idea is for you to finish what I started and make it part of your distribution like Win32::Unicode::Native does :) You can borrow more ideas, like that whole blessed globs thing ...makes cooperation with autodie work (something to think about later)
sub opendir(*$) {
my $dh = Win32::LongPath->new;
return unless $dh->opendirL($_[1]);
return $_[0] = $dh; ## copying Win32::Unicode::Native::opendir here
}
so thanks for your time, whatever you decide :) i'll try to make it work some more with File::Find later, Thanks again, bye
support File::Find / use Win32::LongPath::Globally; or Win32::LongPath -overridecore; so that CORE::chdir is chdirL
basically the idea is to have as first module use Win32::LongPath::Globally; and have File::Find WORK with unicode on NTFS transparently afterwards
stat/lstat don't work like Win32::Unicode::Native stat (list context),
I gave it a shot but I couldn't make it work (stat or chdir or readdir fails ... ), hopefully you'll have more clues :) thanks in advance
The text was updated successfully, but these errors were encountered: