>>>> "Darryl" == Darryl Okahata
<darrylo(a)sr.hp.com> writes:
Darryl> There is a way to do file-directory-p without doing a
Darryl> stat() under Win32, but I don't know if it will save any
Darryl> time.
int fa = GetFileAttributes(fn);
return (fa != 0xFFFFFFFF && (fa & FILE_ATTRIBUTE_DIRECTORY));
It is indeed faster than stat(). 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 ?)
Cheers,
Fabrice