| 38 | } |
| 39 | |
| 40 | bool |
| 41 | Remove (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 | |
| 51 | bool |
| 52 | RemoveAll (std::string const& p) |
no test coverage detected