MCPcopy Create free account
hub / github.com/covscript/covscript / mkdir_dirs

Function mkdir_dirs

sources/system/common.cpp:93–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 }
92
93 static bool mkdir_dirs(const std::vector<std::string> &dirs, unsigned int mode, bool absolute_path = false)
94 {
95 std::string path;
96 if (absolute_path)
97 path = cs::path_separator;
98 for (const auto &dir : dirs) {
99 path += dir + cs::path_separator;
100 if (std::filesystem::is_directory(path))
101 continue;
102 if (!mkdir_impl(path, mode))
103 return false;
104 }
105 return true;
106 }
107} // namespace cs_system_impl
108
109#ifdef COVSCRIPT_PLATFORM_WIN32

Callers

nothing calls this directly

Calls 1

mkdir_implFunction · 0.50

Tested by

no test coverage detected