MCPcopy Create free account
hub / github.com/Norbyte/bg3se / TryCreateDirectory

Function TryCreateDirectory

CoreLib/Utils.cpp:106–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106bool TryCreateDirectory(std::wstring const& path)
107{
108 if (!PathFileExistsW(path.c_str())) {
109 return CreateDirectoryW(path.c_str(), NULL) == TRUE;
110 } else {
111 return true;
112 }
113}
114
115bool SaveFile(std::wstring const& path, std::vector<uint8_t> const& body)
116{

Calls

no outgoing calls

Tested by

no test coverage detected