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

Method file_exists_and_delete

OpenHD/ohd_common/src/openhd_util.cpp:190–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190bool OHDUtil::file_exists_and_delete(const char* filename) {
191 bool ret = false;
192 if (OHDFilesystemUtil::exists(filename)) {
193 ret = true;
194 openhd::log::get_default()->warn("Got action, deleting {}", filename);
195 OHDFilesystemUtil::remove_if_existing(filename);
196 }
197 return ret;
198}
199
200std::vector<std::string> OHDUtil::split_string_by_newline(
201 const std::string& str, const bool include_newline_character) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected