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

Method ephemeralFile

source/core/StarFile_windows.cpp:169–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169FilePtr File::ephemeralFile() {
170 auto file = temporaryFile();
171 DeleteFileW(stringToUtf16(file->fileName()).get());
172 file->m_filename = "";
173 return file;
174}
175
176String File::temporaryDirectory() {
177 WCHAR tempPath[MAX_PATH];

Callers

nothing calls this directly

Calls 3

stringToUtf16Function · 0.85
fileNameMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected