| 172 | } |
| 173 | |
| 174 | std::string PosixPath(const char *path) { |
| 175 | std::string p = path; |
| 176 | std::replace(p.begin(), p.end(), '\\', '/'); |
| 177 | return p; |
| 178 | } |
| 179 | |
| 180 | void EnsureDirExists(const std::string &filepath) { |
| 181 | auto parent = StripFileName(filepath); |