Try this:
Code:
if(GetFileAttributes(Find.cFileName) & FILE_ATTRIBUTE_DIRECTORY)
That will handle any hidden or system folders as well.