# HG changeset patch # User Sebastien Jodogne # Date 1632397391 -7200 # Node ID d9951c2e0bacb0ae58330f3f4fb1114dc4a40863 # Parent f76fdef338a3ce8573b98aced86c3f58905f621c create parent directory of database if non-existing diff -r f76fdef338a3 -r d9951c2e0bac Sources/Plugin.cpp --- 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(); }