Hello,

I need to determine if d_name in struct dirent is a file or directory. According to the Clibray I can use unsigned char d_type but it is not reliable for all posix systems. So, how would I determine if d_type is a file or directory without unsigned char d_type? Could I just check to see if it is a directory by opening a directory and if it opens, it is a directory and if it fails it is not a directory? Any ideas?