MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / exists

Method exists

source/core/StarFile_windows.cpp:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53bool File::exists(String const& path) {
54 WIN32_FIND_DATAW findFileData;
55 const HANDLE handle = FindFirstFileW(stringToUtf16(path).get(), &findFileData);
56 if (handle == INVALID_HANDLE_VALUE)
57 return false;
58 FindClose(handle);
59 return true;
60}
61
62bool File::isFile(String const& path) {
63 WIN32_FIND_DATAW findFileData;

Callers

nothing calls this directly

Calls 2

stringToUtf16Function · 0.85
getMethod · 0.45

Tested by

no test coverage detected