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

Method temporaryFileName

source/core/StarFile_unix.cpp:121–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121String File::temporaryFileName() {
122 return relativeTo(P_tmpdir, strf("starbound.tmpfile.{}", hexEncode(Random::randBytes(16))));
123}
124
125FilePtr File::temporaryFile() {
126 return open(temporaryFileName(), IOMode::ReadWrite);

Callers

nothing calls this directly

Calls 3

strfFunction · 0.85
hexEncodeFunction · 0.85
randBytesFunction · 0.85

Tested by

no test coverage detected