* Create directory (and if necessary its parents), unless the leaf directory * already exists or is a symlink to an existing directory. * This is a temporary workaround for an issue in libstdc++ that has been fixed * upstream [PR101510]. */
| 148 | * upstream [PR101510]. |
| 149 | */ |
| 150 | static inline bool create_directories(const std::filesystem::path& p) |
| 151 | { |
| 152 | if (std::filesystem::is_symlink(p) && std::filesystem::is_directory(p)) { |
| 153 | return false; |
| 154 | } |
| 155 | return std::filesystem::create_directories(p); |
| 156 | } |
| 157 | |
| 158 | /** |
| 159 | * This variant is not used. Delete it to prevent it from accidentally working |
no outgoing calls