MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / fileExists

Function fileExists

libCacheSim-node/binding.cc:11–14  ·  view source on GitHub ↗

Helper function to check if file exists

Source from the content-addressed store, hash-verified

9
10// Helper function to check if file exists
11bool fileExists(const std::string& filename) {
12 struct stat buffer;
13 return (stat(filename.c_str(), &buffer) == 0);
14}
15
16// Helper function to parse cache size string (e.g., "1mb", "1gb", "1024")
17uint64_t parseCacheSize(const std::string& sizeStr) {

Callers 2

runSimulationFunction · 0.85
runSimFunction · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected