| 113 | } |
| 114 | |
| 115 | bool |
| 116 | amrex::UtilCreateDirectory (const std::string& path, |
| 117 | mode_t mode, bool verbose) |
| 118 | { |
| 119 | double sleep = 0.1; |
| 120 | while (sleep < 2.0) { |
| 121 | if (FileSystem::CreateDirectories(path, mode, verbose)) { return true; } |
| 122 | amrex::Sleep(sleep); |
| 123 | sleep *= 2; |
| 124 | } |
| 125 | return false; |
| 126 | } |
| 127 | |
| 128 | void |
| 129 | amrex::CreateDirectoryFailed (const std::string& dir) |
nothing calls this directly
no test coverage detected