57 lasterr = 0; dhandle = 0;
58 if (path && strlen(path) > 0) {
60 dhandle = (
void *)
opendir(path);
64 WIN32_FIND_DATA filedata;
65 dhandle = (
void *) ::FindFirstFile(path, &filedata);
66 if ((HANDLE)dhandle == INVALID_HANDLE_VALUE) {
70 else if (!(filedata.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) {