Create config directories recursively
This commit is contained in:
parent
6467e10def
commit
7038c1aeb0
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue