* Create a directory with the given name * If the parent directory does not exist, it will try to create that as well. * @param name the new name of the directory */
| 313 | * @param name the new name of the directory |
| 314 | */ |
| 315 | void FioCreateDirectory(const std::string &name) |
| 316 | { |
| 317 | /* Ignore directory creation errors; they'll surface later on. */ |
| 318 | std::error_code error_code; |
| 319 | std::filesystem::create_directories(OTTD2FS(name), error_code); |
| 320 | } |
| 321 | |
| 322 | /** |
| 323 | * Remove a file. |
no test coverage detected