MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / Exists

Method Exists

Goldleaf/source/fs/fs_StdExplorer.cpp:100–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 }
99
100 bool StdExplorer::Exists(const std::string &path) {
101 const auto full_path = this->MakeFull(path);
102
103 struct stat st;
104 return stat(full_path.c_str(), &st) == 0;
105 }
106
107 bool StdExplorer::IsFile(const std::string &path) {
108 const auto full_path = this->MakeFull(path);

Callers 2

LoadMethod · 0.45
UpdateValuesMethod · 0.45

Calls 2

statClass · 0.85
MakeFullMethod · 0.80

Tested by

no test coverage detected