Commit 11325548 authored by yannick legoc's avatar yannick legoc

Create the variables directory if it does not exist

parent a8f6aa06
......@@ -104,6 +104,10 @@ bool UserVariableManager::userVariableExists(const std::string& variableName) co
void UserVariableManager::init(const std::string& configPath) {
_userVariableManagerConfigFileName = configPath + VARIABLE_PATH;
// Create the parent directory if it does not exist.
path filePath(_userVariableManagerConfigFileName);
create_directory(filePath.parent_path());
}
void UserVariableManager::run() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment