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 1.0.9.06 :
It doesn't work.  I get a ENOENT errorno back . But if I pass "C:\\msys\\1.0.9.06\\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.
--
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: shaun@issi.co.za Web Page: http://www.issi.co.za
 
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
prohibited.
____________________________________________________________________