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

Method UtilCreateDirectory

Src/Base/AMReX_Utility.cpp:115–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115bool
116amrex::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
128void
129amrex::CreateDirectoryFailed (const std::string& dir)

Callers

nothing calls this directly

Calls 1

CreateDirectoriesFunction · 0.85

Tested by

no test coverage detected