Hello.
I'm having a small problem with a code i'm writing.
I have to read all files in a directory, and, if i find a subdirectory, i have to enter and keep doing operations there.
The problem is I don't know how to determine if the filename is a regular file or a directory.
I am using a struct dirent structure, but i'm on a system which doesn't recognize d_type as a member of this structure.
Any ideas?
Thank you.