MCPcopy Create free account
hub / github.com/apache/trafficserver / exists

Method exists

src/tscore/BaseLogFile.cc:254–259  ·  view source on GitHub ↗

* Returns if the provided file in 'pathname' exists or not */

Source from the content-addressed store, hash-verified

252 * Returns if the provided file in 'pathname' exists or not
253 */
254bool
255BaseLogFile::exists(const char *pathname)
256{
257 ink_assert(pathname != nullptr);
258 return (pathname && ::access(pathname, F_OK) == 0);
259}
260
261/*
262 * Opens the BaseLogFile and associated BaseMetaInfo on disk if it exists

Callers 3

save_to_fileFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected