How to tell if its a file or a directory
I'm using WinInet to connect to an FTP server and have sort of like a File -> Open type of application. Once it's connected, it reads in the list of folders in that directory, the user selects one and the program should open that one ad present all the folders in it. When I'm reading all the directories in, how do I check if it's a file or a directory? Because if it's a file I want to put it in a different list.
Something like this:
BOOL bWorking = finder.FindFile(_T("*"));
bWorking = finder.FindNextFile();
fname = finder.GetFilePath();