| 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 |
nothing calls this directly
no test coverage detected