MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / deleteDirectory

Function deleteDirectory

src/Core/Utils/FileUtils.cpp:165–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163 }
164
165 bool deleteDirectory(const std::string& path)
166 {
167 Debug::Log->trace("<FileUtils> Delete Directory at {0}", path);
168
169#ifdef _USE_FILESYSTEM_FALLBACK
170 Debug::Log->error("<FileUtils> Unimplemented deleteDirectory for "
171 "filesystem fallback");
172#else
173 if (directoryExists(path))
174 return std::filesystem::remove(path);
175#endif
176 return false;
177 }
178
179 std::string getCurrentDirectory()
180 {

Callers

nothing calls this directly

Calls 4

directoryExistsFunction · 0.85
removeFunction · 0.85
traceMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected