File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments