Create config directories recursively
This commit is contained in:
@@ -1138,7 +1138,7 @@ namespace config {
|
|||||||
|
|
||||||
// create appdata folder if it does not exist
|
// create appdata folder if it does not exist
|
||||||
if (!boost::filesystem::exists(platf::appdata().string())) {
|
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
|
// create config file if it does not exist
|
||||||
|
|||||||
@@ -488,7 +488,7 @@ namespace confighttp {
|
|||||||
|
|
||||||
const std::string coverdir = platf::appdata().string() + "/covers/";
|
const std::string coverdir = platf::appdata().string() + "/covers/";
|
||||||
if (!boost::filesystem::exists(coverdir)) {
|
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";
|
std::basic_string path = coverdir + http::url_escape(key) + ".png";
|
||||||
|
|||||||
Reference in New Issue
Block a user