MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / RemoveAll

Function RemoveAll

Src/Base/AMReX_FileSystem.cpp:51–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51bool
52RemoveAll (std::string const& p)
53{
54 std::error_code ec;
55 std::filesystem::remove_all(std::filesystem::path{p},ec);
56 if (ec) {
57 amrex::Error("amrex::FileSystem::RemoveAll failed to remove " + p
58 + ": " + ec.message());
59 return false;
60 } else {
61 return true;
62 }
63}
64
65#if defined(_WIN32) // || __cplusplus >= 201703L
66

Callers 4

TryFileOutputMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected