I've been converting a Windows App to a Unix App, using XCode.
Nearly every error points me to the Find* commands.
For some of them, I can't even find their Unix alternatives.
I need the following:
_finddata_t fileinfo (it might be "readdir", as it decreased my errors by 50%, but "fileinfo" doesn't seem to be right).
_findfirst (I found out that this is "opendir").
_A_ARCH
_findnext
_A_SUBDIR
_findclose (most probably "closedir").
&finfo
It might be helpful if you stepped back an looked at how POSIX directory and file traversal worked first. When you understand that, you can think about porting your Windows code.
On difference is Windows directories have the same attributes as files and are traversed using the same functions. This is not the case with POSIX.