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

Function Remove

Src/Base/AMReX_FileSystem.cpp:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40bool
41Remove (std::string const& filename)
42{
43 std::error_code ec;
44 bool r = std::filesystem::remove(std::filesystem::path{filename},ec);
45 if (ec && amrex::Verbose() > 0) {
46 amrex::AllPrint() << "amrex::FileSystem::Remove failed. " << ec.message() << '\n';
47 }
48 return r;
49}
50
51bool
52RemoveAll (std::string const& p)

Callers 4

CheckpointPostMethod · 0.85
CheckpointPostHDF5Method · 0.85

Calls 1

AllPrintClass · 0.85

Tested by

no test coverage detected