This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: [PATCH 3/4] Make io_stream::exists() directory aware
- From: Peter Rosin <peda at lysator dot liu dot se>
- To: cygwin-apps at cygwin dot com
- Date: Thu, 16 Dec 2010 22:49:03 +0100
- Subject: Re: [PATCH 3/4] Make io_stream::exists() directory aware
- References: <1290779320-872-1-git-send-email-jon.turney@dronecode.org.uk> <1290779320-872-4-git-send-email-jon.turney@dronecode.org.uk> <20101129112832.GB7001@calimero.vinschen.de> <4D0A6AA0.4010900@dronecode.org.uk>
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...
Cheers,
Peter