Fabrice POPINEAU <popineau(a)esemetz.ese-metz.fr> wrote:
int fa = GetFileAttributes(fn);
return (fa != 0xFFFFFFFF && (fa & FILE_ATTRIBUTE_DIRECTORY));
It is indeed faster than stat().
This is, basically, what I did.
Moreover stat() is completely buggy
under W95. I recall that stat() agreed that c:/tmp was a directory,
but not c:/tmp/ (or was it the converse ?)
Ouch. I'll have to see if that bug is still present in VC5.0
stat().
-- Darryl Okahata
Internet: darrylo(a)sr.hp.com
DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion, or policy of Hewlett-Packard, or of the
little green men that have been following him all day.