MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / check_file_exists

Function check_file_exists

src/include/utils/utils.hpp:338–341  ·  view source on GitHub ↗

\brief check if the file exists \param name the name of the file \return true if the file exists, false otherwise

Source from the content-addressed store, hash-verified

336/// \param name the name of the file
337/// \return true if the file exists, false otherwise
338inline bool check_file_exists(std::string name) {
339 std::ifstream file(name);
340 return file.good();
341}
342
343
344/// \brief get the user's Documents directory on Windows or config directory on Linux

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected