MCPcopy Create free account
hub / github.com/apache/brpc / CreateAndOpenTemporaryFile

Function CreateAndOpenTemporaryFile

src/butil/file_util.cc:178–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178FILE* CreateAndOpenTemporaryFile(FilePath* path) {
179 FilePath directory;
180 if (!GetTempDir(&directory))
181 return NULL;
182
183 return CreateAndOpenTemporaryFileInDir(directory, path);
184}
185
186bool CreateDirectory(const FilePath& full_path) {
187 return CreateDirectoryAndGetError(full_path, NULL);

Callers 1

TEST_FFunction · 0.85

Calls 2

GetTempDirFunction · 0.85

Tested by 1

TEST_FFunction · 0.68