in src/main/cpp/bootstrap/utilsfuncs.cpp [112:123]
bool dirExists(const char *path) {
WIN32_FIND_DATA fd = {0};
HANDLE hFind = 0;
hFind = FindFirstFile(path, &fd);
if (hFind == INVALID_HANDLE_VALUE) {
logMsg("Dir \"%s\" does not exist", path);
return false;
}
logMsg("Dir \"%s\" exists", path);
FindClose(hFind);
return (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0;
}