in reply to Re^2: true from (-e "") on Windoze (" is an illegal filename character
in thread true from (-e "") on Windoze
The file name is illegal, but no, we won't return an error! yuck.
Not sure why "yuck"?
Either, it should be treated as illegal and return "The system cannot find the file specified",
or it is a valid alias for CWD and should do what it now does.
I can't see what other option there is?
Is there a system call that can be called instead of C's stat?
I'm not sure what that would achieve?
Most of the values returned by stat that actually have any meaning on NTFS, are available via GetFileAttributesEx().
But be aware, Win32.c:Win32_stat() already calls this (but only if _stat()/_stat64() fail??), along with several others (GetFileAttributesA()/GetVolumeInformationA()/GetFileInformationByHandle()) in order to fix-up what they see as bugs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: true from (-e "") on Windoze (" is an illegal filename character
by ikegami (Patriarch) on Sep 17, 2012 at 05:34 UTC | |
by BrowserUk (Patriarch) on Sep 17, 2012 at 06:30 UTC | |
by ikegami (Patriarch) on Sep 17, 2012 at 18:12 UTC | |
by BrowserUk (Patriarch) on Sep 17, 2012 at 20:06 UTC | |
by ikegami (Patriarch) on Sep 17, 2012 at 23:06 UTC | |
|