changeset 6:d9951c2e0bac

create parent directory of database if non-existing
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 23 Sep 2021 13:43:11 +0200
parents f76fdef338a3
children 03157465f6f4
files Sources/Plugin.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Sources/Plugin.cpp	Thu Sep 23 13:33:48 2021 +0200
+++ b/Sources/Plugin.cpp	Thu Sep 23 13:43:11 2021 +0200
@@ -495,6 +495,7 @@
             folder = configuration.GetStringValue(STORAGE_DIRECTORY, ORTHANC_STORAGE);
           }
 
+          Orthanc::SystemToolbox::MakeDirectory(folder);
           path = (boost::filesystem::path(folder) / "indexer.db").string();
         }