Fix creation of nested directories for runlog/results
Compare changes
+ 2
− 2
@@ -101,13 +101,13 @@ void ModelIO::init_logging() {
Due to maintenance at 17.06.2025 from 8:00 to 09:00, git.rwth-aachen.de & git-ce.rwth-aachen.de will be temporarily unavailable. In maintenance, GitLab is updated to version 18. Information about changes can be found at: https://about.gitlab.com/blog/2025/04/18/a-guide-to-the-breaking-changes-in-gitlab-18-0/#breaking-changes
Currently, defining nested directories in model.props
to store runlogs/results leads to an error if one of the parent directories has not be created manually before the simulation.
Example:
> model.props
...
# folder in which csv results are saved
104 results.folder = results/scenario1/usecase42
...
leads to an error if results/scenario1
has not been created manually, while usecase42
will be created by ModelIO
.
Fix:
Using boost::filesystem::create_directories(destination_results);
instead at model_io.cpp:110
.