82 WIN32_FIND_DATAA findFileInfo;
83 std::string directory;
85 directory = dirpath +
"/" + filter;
87 hFind = FindFirstFileA(directory.c_str(), &findFileInfo);
89 if (hFind == INVALID_HANDLE_VALUE)
93 if ((findFileInfo.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) == 0)
94 fileList.push_back(std::string(findFileInfo.cFileName));
96 while (FindNextFileA(hFind, &findFileInfo));
101 const char *p = dirpath.c_str();
102 DIR * dirp = opendir(p);
108 if ((dp = readdir(dirp)) !=
nullptr)
110 if (strcmp(dp->d_name,
".") != 0 && strcmp(dp->d_name,
"..") != 0 &&
matchWildcardFilter(filter.c_str(), dp->d_name))
111 fileList.push_back(std::string(dp->d_name));