Create config directories recursively

This commit is contained in:
ns6089 2023-04-05 18:03:03 +03:00 committed by Cameron Gutman
parent 6467e10def
commit 7038c1aeb0
2 changed files with 2 additions and 2 deletions

View File

@ -1138,7 +1138,7 @@ namespace config {
// create appdata folder if it does not exist
if (!boost::filesystem::exists(platf::appdata().string())) {
boost::filesystem::create_directory(platf::appdata().string());
boost::filesystem::create_directories(platf::appdata().string());
}
// create config file if it does not exist

View File

@ -488,7 +488,7 @@ namespace confighttp {
const std::string coverdir = platf::appdata().string() + "/covers/";
if (!boost::filesystem::exists(coverdir)) {
boost::filesystem::create_directory(coverdir);
boost::filesystem::create_directories(coverdir);
}
std::basic_string path = coverdir + http::url_escape(key) + ".png";