We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent73935a6 commitee76667Copy full SHA for ee76667
libs/network/test/server/http_test_server.hpp
@@ -82,7 +82,7 @@ struct http_test_server
82
script_handle_tlaunch_python_script(const boost::filesystem::path& python_script_path) {
83
usingnamespaceboost::filesystem;
84
85
- path::string_type script_name = python_script_path.filename();
+ path::string_type script_name = python_script_path.filename().string();
86
path::string_type script_dir = python_script_path.parent_path().string();
87
88
#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
@@ -139,7 +139,7 @@ struct http_test_server
139
// set the CGI script execute permission
140
for (directory_iteratori(cgibin_path); i !=directory_iterator(); ++i) {
141
if (is_regular_file(i->status())) {
142
- path::string_type file_path = i->path().file_string();
+ path::string_type file_path = i->path().string();
143
if (chmod(file_path.c_str(), S_IWUSR|S_IXUSR|S_IXGRP|S_IXOTH|S_IRUSR|S_IRGRP|S_IROTH) !=0)
144
returnfalse;
145
}