We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d931ac commit 7c5329bCopy full SHA for 7c5329b
1 file changed
src/fmi4cpp/fmi2/fmu.cpp
@@ -10,6 +10,7 @@
10
11
using namespace fmi4cpp;
12
using namespace fmi4cpp::fmi2;
13
+namespace fs = std::filesystem;
14
15
fmu::fmu(const std::filesystem::path& fmuPath, bool unzipFmu)
16
{
@@ -27,7 +28,7 @@ fmu::fmu(const std::filesystem::path& fmuPath, bool unzipFmu)
27
28
const std::string fmuName = fmuPath.stem().string();
29
fs::path tmpPath(fs::temp_directory_path() /= fs::path("fmi4cpp_" + fmuName + "_" + generate_simple_id(8)));
30
- if (!create_directories(tmpPath)) {
31
+ if (!fs::create_directories(tmpPath)) {
32
const auto err = "Failed to create temporary directory '" + tmpPath.string() + "' !";
33
MLOG_FATAL(err);
34
throw std::runtime_error(err);
0 commit comments