MCPcopy Create free account
hub / github.com/MITK/MITK / SetupTempDirectory

Method SetupTempDirectory

Modules/RESTAPI/src/mitkRestServer.cpp:1229–1242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1227}
1228
1229bool RestServer::SetupTempDirectory()
1230{
1231 try
1232 {
1233 m_TempDirectory = IOUtil::CreateTemporaryDirectory("mitk-rest-XXXXXX");
1234 MITK_DEBUG << "Created REST API temp directory: " << m_TempDirectory;
1235 return true;
1236 }
1237 catch (const std::exception& e)
1238 {
1239 MITK_ERROR << "Failed to create temp directory: " << e.what();
1240 return false;
1241 }
1242}
1243
1244void RestServer::CleanupTempDirectory(const std::string& tempDir)
1245{

Callers 1

StartMethod · 0.95

Calls 1

whatMethod · 0.80

Tested by

no test coverage detected