MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / GetDefaultOutputDir

Method GetDefaultOutputDir

apps/tools/Tools/commands/PboCommand.cpp:187–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185bool PboCommand::CreateDirectories(const std::string& path)
186{
187 if (path.empty())
188 return true;
189 struct stat st;
190 if (stat(path.c_str(), &st) == 0)
191 return true;
192 auto pos = path.find_last_of("/\\");
193 if (pos != std::string::npos && pos > 0)
194 {
195 if (!CreateDirectories(path.substr(0, pos)))
196 return false;
197 }

Callers

nothing calls this directly

Calls 1

StripPboExtensionFunction · 0.70

Tested by

no test coverage detected