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

Method temporaryDirectory

source/core/StarFile_unix.cpp:142–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142String File::temporaryDirectory() {
143 String dirname = relativeTo(P_tmpdir, strf("starbound.tmpdir.{}", hexEncode(Random::randBytes(16))));
144 makeDirectory(dirname);
145 return dirname;
146}
147
148bool File::exists(String const& path) {
149 struct stat st_buf;

Callers

nothing calls this directly

Calls 3

strfFunction · 0.85
hexEncodeFunction · 0.85
randBytesFunction · 0.85

Tested by

no test coverage detected