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

Function generateTempFolderPath

bolt/common/base/Fs.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63std::optional<std::string> generateTempFolderPath(
64 const char* basePath,
65 const char* prefix) {
66 auto path = fmt::format("{}/bolt_{}_XXXXXX", basePath, prefix);
67 auto createdPath = mkdtemp(path.data());
68 if (createdPath == nullptr) {
69 return std::nullopt;
70 }
71 return path;
72}
73
74} // namespace bytedance::bolt::common

Callers 2

persistReproInfoFunction · 0.85
persistReproInfoMethod · 0.85

Calls 1

dataMethod · 0.45

Tested by 1

persistReproInfoMethod · 0.68