48 #ifdef PLATFORM_WINDOWS
56 if(szSearchMask ==
NULL)
60 hFind = FindFirstFile(szSearchMask, &wf);
64 while(FindNextFile(hFind, &wf))
67 if(!(wf.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY))
70 pfnOnFileFound(wf.cFileName, MainIndexes, OldIndexArray, pvContext);
80 #else // PLATFORM_WINDOWS
82 struct dirent * dir_entry;
85 dir = opendir(szIndexPath);
88 while((dir_entry = readdir(dir)) !=
NULL)
90 if(dir_entry->d_type != DT_DIR)
92 pfnOnFileFound(dir_entry->d_name, MainIndexes, OldIndexArray, pvContext);
void * HANDLE
Definition: CascPort.h:146
#define ERROR_NOT_ENOUGH_MEMORY
Definition: CascPort.h:208
arena_t NULL
Definition: jemalloc_internal.h:624
char TCHAR
Definition: CascPort.h:148
#define _T(x)
Definition: CascPort.h:171
#define CASC_FREE(ptr)
Definition: CascCommon.h:303
TCHAR * CombinePath(const TCHAR *szDirectory, const TCHAR *szSubDir)
Definition: Common.cpp:157
#define INVALID_HANDLE_VALUE
Definition: CascPort.h:169
#define ERROR_SUCCESS
Definition: CascPort.h:204