Create config dir if it doesn't exist.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
d9b8b4407f
commit
eca12c0831
|
@ -117,7 +117,13 @@ fs::path Config::get_filename() const
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (dir /= "mastorss") /= "config-" + _profile + ".json";
|
dir /= "mastorss";
|
||||||
|
if (fs::create_directories(dir))
|
||||||
|
{
|
||||||
|
BOOST_LOG_TRIVIAL(debug) << "Created config dir: " << dir;
|
||||||
|
}
|
||||||
|
|
||||||
|
return dir /= "config-" + _profile + ".json";
|
||||||
}
|
}
|
||||||
|
|
||||||
void Config::generate()
|
void Config::generate()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user