Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
121
String File::temporaryFileName() {
122
return relativeTo(P_tmpdir, strf(
"starbound.tmpfile.{}"
, hexEncode(Random::randBytes(16))));
123
}
124
125
FilePtr File::temporaryFile() {
126
return open(temporaryFileName(), IOMode::ReadWrite);
Callers
nothing calls this directly
Calls
3
strf
Function · 0.85
hexEncode
Function · 0.85
randBytes
Function · 0.85
Tested by
no test coverage detected