| 65 | #if defined(_WIN32) // || __cplusplus >= 201703L |
| 66 | |
| 67 | bool |
| 68 | CreateDirectories (std::string const& p, mode_t /*mode*/, bool verbose) |
| 69 | { |
| 70 | std::error_code ec; |
| 71 | std::filesystem::create_directories(std::filesystem::path{p}, ec); |
| 72 | if (ec && verbose) { |
| 73 | amrex::AllPrint() << "amrex::UtilCreateDirectory failed to create " |
| 74 | << p << ": " << ec.message() << '\n'; |
| 75 | } |
| 76 | return !ec; |
| 77 | } |
| 78 | |
| 79 | #else |
| 80 |
no test coverage detected