Skip to content

Commit 3639338

Browse files
Boost has a never version of file utilities classes and the methods proxyme uses are deprecated
Patch: Martin Balik
1 parent 6184631 commit 3639338

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/main.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ int main(int argc, char** argv) {
102102
}
103103

104104
configdir = home.string() + CONFIGDIR;
105-
configfile = configdir.directory_string() + CONFIGFILENAME;
105+
configfile = configdir.string() + CONFIGFILENAME;
106106

107107
if (!filesystem::exists(configfile)) {
108108
cout << "No configuration available, initialization of proxyme...";
@@ -113,11 +113,15 @@ int main(int argc, char** argv) {
113113
filesystem::directory_iterator end_it;
114114

115115
for ( filesystem::directory_iterator it(dir); it != end_it; ++it) {
116-
filesystem::copy_file(it->path(), configdir.directory_string() + it->path().filename());
116+
117+
filesystem::path tartget_file_path = configdir;
118+
tartget_file_path /= it->path().filename();
119+
120+
filesystem::copy_file(it->path(), tartget_file_path);
117121
}
118122

119123
cout << " done." << endl;
120-
cout << "Customize here: " << configdir.directory_string() << endl;
124+
cout << "Customize here: " << configdir.string() << endl;
121125
return 0;
122126
}
123127
else {

0 commit comments

Comments
 (0)