mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-01-30 12:32:43 +00:00
Create config directories recursively
This commit is contained in:
parent
6467e10def
commit
7038c1aeb0
@ -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…
x
Reference in New Issue
Block a user