MCPcopy Create free account
hub / github.com/bytedance/bolt / generateTempFilePath

Function generateTempFilePath

bolt/common/base/Fs.cpp:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52std::optional<std::string> generateTempFilePath(
53 const char* basePath,
54 const char* prefix) {
55 auto path = fmt::format("{}/bolt_{}_XXXXXX", basePath, prefix);
56 auto fd = mkstemp(path.data());
57 if (fd == -1) {
58 return std::nullopt;
59 }
60 return path;
61}
62
63std::optional<std::string> generateTempFolderPath(
64 const char* basePath,

Callers 4

TEST_FFunction · 0.85
persistDataAndSqlMethod · 0.85
printInputAndExprsFunction · 0.85
saveResultsFunction · 0.85

Calls 1

dataMethod · 0.45

Tested by 2

TEST_FFunction · 0.68
saveResultsFunction · 0.68