MCPcopy Create free account
hub / github.com/CMU-Perceptual-Computing-Lab/openpose / existFile

Function existFile

src/openpose/utilities/fileSystem.cpp:132–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 }
131
132 bool existFile(const std::string& filePath)
133 {
134 try
135 {
136 if (auto* file = fopen(filePath.c_str(), "r"))
137 {
138 fclose(file);
139 return true;
140 }
141 else
142 return false;
143 }
144 catch (const std::exception& e)
145 {
146 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
147 return false;
148 }
149 }
150
151 std::string formatAsDirectory(const std::string& directoryPathString)
152 {

Callers 3

ImplNetOpenCvMethod · 0.85
ImplNetCaffeMethod · 0.85
loadDataFunction · 0.85

Calls 2

whatMethod · 0.80
errorFunction · 0.70

Tested by

no test coverage detected