* Convert byte string to path object. Inverse of \ref PathToString. */
| 133 | * Convert byte string to path object. Inverse of \ref PathToString. |
| 134 | */ |
| 135 | static inline path PathFromString(const std::string& string) |
| 136 | { |
| 137 | #ifdef WIN32 |
| 138 | return u8path(string); |
| 139 | #else |
| 140 | return std::filesystem::path(string); |
| 141 | #endif |
| 142 | } |
| 143 | |
| 144 | /** |
| 145 | * Create directory (and if necessary its parents), unless the leaf directory |