MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / getExecutablePath

Method getExecutablePath

Libraries/FileSystem/FileSystem.cpp:1383–1391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 7

getExecutablePathFunction · 0.85
fromNullTerminatedFunction · 0.85
writableSpanMethod · 0.80
resizeMethod · 0.45
viewMethod · 0.45
assignMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected