MCPcopy Create free account
hub / github.com/facebook/CacheLib / fileExists

Function fileExists

cachelib/allocator/NvmCacheState.cpp:39–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37const folly::StringPiece kShouldDropNvmCache = "IceRoll";
38
39bool fileExists(const std::string& file) {
40 return util::getStatIfExists(file, nullptr);
41}
42
43std::string constructFilePath(folly::StringPiece cacheDir,
44 folly::StringPiece name) {

Callers 2

NvmCacheStateMethod · 0.85
restoreStateMethod · 0.85

Calls 1

getStatIfExistsFunction · 0.85

Tested by

no test coverage detected