[PATCH 3/4] Make io_stream::exists() directory aware

Peter Rosin peda@lysator.liu.se
Thu Dec 16 21:49:00 GMT 2010

Den 2010-12-16 20:38 skrev Jon TURNEY:
> On 29/11/2010 11:28, Corinna Vinschen wrote:
>> I would prefer if you would use GetFileAttributesA here, just like the
>> io_stream_file::exists method.  This also unifies testing the
>> attributes.
> Oh, I used _stat() in the !IsWindowsNT() case as MSDN tells me that
> GetFileAttributes() isn't available prior to Win2K.  I guess I've been misled :-)

That's just MS trying to rewrite history now that Win2k is is the oldest
supported OS.  According to MSDN, no API predates Win2k.  Stupid if you
ask me...


More information about the Cygwin-apps mailing list