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

Function CreateDirectories

Src/Base/AMReX_FileSystem.cpp:67–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65#if defined(_WIN32) // || __cplusplus >= 201703L
66
67bool
68CreateDirectories (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

Callers 1

UtilCreateDirectoryMethod · 0.85

Calls 4

AllPrintClass · 0.85
emptyMethod · 0.45
push_backMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected