diff --git a/src/config.cpp b/src/config.cpp index 07d4d71c..1e4276df 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -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 diff --git a/src/confighttp.cpp b/src/confighttp.cpp index c7a2a8b3..908ef721 100644 --- a/src/confighttp.cpp +++ b/src/confighttp.cpp @@ -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";