tests: add httpcommon tests and add new file_handler methods (#2712)

Co-authored-by: Mariotaku <mariotaku.lee@gmail.com>
This commit is contained in:
ReenigneArcher 2024-06-17 14:03:42 -04:00 committed by GitHub
commit 334267807f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 144 additions and 6 deletions

View file

@ -1255,9 +1255,7 @@ namespace config {
bool config_loaded = false;
try {
// Create appdata folder if it does not exist
if (!boost::filesystem::exists(platf::appdata().string())) {
boost::filesystem::create_directories(platf::appdata().string());
}
file_handler::make_directory(platf::appdata().string());
// Create empty config file if it does not exist
if (!fs::exists(sunshine.config_file)) {