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

Method safe_delete_directory

OpenHD/ohd_common/src/openhd_util_filesystem.cpp:116–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void OHDFilesystemUtil::safe_delete_directory(const std::string &directory) {
117 if (exists(directory)) {
118 std::filesystem::remove_all(directory.c_str());
119 }
120}
121
122void OHDFilesystemUtil::write_file(const std::string &path,
123 const std::string &content) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected