MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / fileExists

Function fileExists

plugins/plugin_utils/plugin_files.cpp:412–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412bool fileExists(const char* path) {
413 if (!path) {
414 return false;
415 }
416
417 FILE* fp = fopen(convertPathToDelims(path).c_str(), "rb");
418 if (!fp) {
419 return false;
420 }
421 fclose(fp);
422
423 return true;
424}
425
426// Local Variables: ***
427// mode: C++ ***

Callers

nothing calls this directly

Calls 2

convertPathToDelimsFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected