| 49 | } |
| 50 | |
| 51 | bool |
| 52 | RemoveAll (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 |
no outgoing calls
no test coverage detected