First, it modifies stat function based on a solution found here :
https://bugs.ruby-lang.org/issues/6845
Some files can't be stated by CreateFileW / GetFileInformationByHandle, so then we try with FindFirstFileW which succeeds.
Then, reparse points / links are ignored in readdir function.
A test was attempted to add S_IFLNK to them in stat function but unfortunately Cygwin does not detect such items correctly as links, the solution is then not complete yet.
This is then a workaround.
Hi,
This PR tries to correct #98.
First, it modifies
stat
function based on a solution found here : https://bugs.ruby-lang.org/issues/6845 Some files can't be stated byCreateFileW
/GetFileInformationByHandle
, so then we try withFindFirstFileW
which succeeds.Then, reparse points / links are ignored in
readdir
function. A test was attempted to addS_IFLNK
to them instat
function but unfortunately Cygwin does not detect such items correctly as links, the solution is then not complete yet. This is then a workaround.Ben