MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / read_file

Method read_file

OpenHD/ohd_common/src/openhd_util_filesystem.cpp:159–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159std::string OHDFilesystemUtil::read_file(const std::string &filename) {
160 const auto content = opt_read_file(filename);
161 if (!content.has_value()) return "";
162 return content.value();
163}
164
165void OHDFilesystemUtil::remove_if_existing(const std::string &filename) {
166 if (exists(filename)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected