if (stat(pFileSearch->lpPath, &fileStat) < 0)
{
FindClose(pFileSearch);
- WLog_ERR(TAG, "%s stat error %s [%d]", pFileSearch->lpPath, strerror(errno), errno);
SetLastError(map_posix_err(errno));
errno = 0;
return INVALID_HANDLE_VALUE; /* stat error */
if (S_ISDIR(fileStat.st_mode) == 0)
{
- WLog_ERR(TAG, "%s not a dir %s [%d]", pFileSearch->lpPath, strerror(errno), errno);
FindClose(pFileSearch);
return INVALID_HANDLE_VALUE; /* not a directory */
}
if (!pFileSearch->pDir)
{
- WLog_ERR(TAG, "%s dir open failed %s [%d]", pFileSearch->lpPath, strerror(errno), errno);
FindClose(pFileSearch);
SetLastError(map_posix_err(errno));
errno = 0;
char* fullpath;
size_t pathlen;
size_t namelen;
- UINT64 ft;
ZeroMemory(lpFindFileData, sizeof(WIN32_FIND_DATAA));
if (!hFindFile)
if (stat(fullpath, &fileStat) != 0)
{
- WLog_ERR(TAG, "%s stat failed %s [%d]", fullpath, strerror(errno), errno);
free(fullpath);
SetLastError(map_posix_err(errno));
errno = 0;