| 1381 | } |
| 1382 | |
| 1383 | WIN32_FIND_DATAW findData; |
| 1384 | |
| 1385 | HANDLE hFind = ::FindFirstFileW(searchPattern, &findData); |
| 1386 | if (hFind == INVALID_HANDLE_VALUE) |
| 1387 | { |
| 1388 | return fileSystemResultFromNative(::GetLastError(), FileSystemErrorDetail::EnumerateDirectory); |
| 1389 | } |
| 1390 | auto deferClose = MakeDeferred([&]() { ::FindClose(hFind); }); |
| 1391 | |
| 1392 | do |
| 1393 | { |
| 1394 | // Skip . and .. entries |
nothing calls this directly
no test coverage detected