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

Function DeleteFilePath

src/butil/logging.cc:208–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void DeleteFilePath(const PathString& log_name) {
209#if defined(OS_WIN)
210 DeleteFile(log_name.c_str());
211#elif defined (OS_NACL)
212 // Do nothing; unlink() isn't supported on NaCl.
213#else
214 unlink(log_name.c_str());
215#endif
216}
217
218#if defined(OS_LINUX)
219static PathString GetProcessName() {

Callers 1

BaseInitLoggingImplFunction · 0.85

Calls 2

DeleteFileFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected