Good Day,
I am trying to find out if the file-name I have is a directory or not!
The following works on linux:
    if (stat("/var/tmp/", &b)) {
        if ( S_ISDIR(b.st_mode)) return(TRUE);    
On Windows XP - MinGW2.0 - Msys :
It doesn't work.  I get a ENOENT errorno back . But if I pass "C:\\msys\\\\var\\tmp\\" to stat it passes?
This is surely not the way stat must function, because I don't want to have to convert all paths to
windows paths?
Can anyone enligthen me as to the best way to get past this?
Kind regards
Shaun Kelly
ISS International Limited, Technical Division, Software Engineering
P O Box 12063, DIE BOORD 7613, South Africa
Tel: +27 (0)21 809-2096 Fax: +27 (0)21 809-2061
Email: Web Page:
Confidentiality Warning
This e-mail message contains confidential information which is
intended for the use of the person to whom it is addressed.  If you
received it in error, please notify the sender and delete the
material from any computer.  Any disclosure, re-transmission,
dissemination or any other use of this information is strictly