MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / FioCreateDirectory

Function FioCreateDirectory

src/fileio.cpp:315–320  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

313 * @param name the new name of the directory
314 */
315void 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.

Callers 3

ExtractTarFunction · 0.85
DeterminePathsFunction · 0.85
GetSMFFileMethod · 0.85

Calls 1

OTTD2FSFunction · 0.70

Tested by

no test coverage detected