We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88ffb3f commit c33b993Copy full SHA for c33b993
src/serverlist.cpp
@@ -38,10 +38,12 @@ std::string getFilePath()
38
{
39
std::string serverlist_file = g_settings->get("serverlist_file");
40
41
- std::string rel_path = std::string("client") + DIR_DELIM
42
- + "serverlist" + DIR_DELIM
43
- + serverlist_file;
44
- std::string path = porting::path_share + DIR_DELIM + rel_path;
+ std::string dir_path = std::string("client") + DIR_DELIM
+ + "serverlist" + DIR_DELIM;
+ fs::CreateDir(porting::path_user + DIR_DELIM + "client");
+ fs::CreateDir(porting::path_user + DIR_DELIM + dir_path);
45
+ std::string rel_path = dir_path + serverlist_file;
46
+ std::string path = porting::path_user + DIR_DELIM + rel_path;
47
return path;
48
}
49
0 commit comments