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

Method remove_if_existing

OpenHD/ohd_common/src/openhd_util_filesystem.cpp:165–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void OHDFilesystemUtil::remove_if_existing(const std::string &filename) {
166 if (exists(filename)) {
167 std::filesystem::remove(filename);
168 }
169}
170
171void OHDFilesystemUtil::make_file_read_write_everyone(
172 const std::string &filename) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected