Skip to content

Commit ee76667

Browse files
committed
Upgrading to Filesystem V3 interface.
1 parent 73935a6 commit ee76667

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/network/test/server/http_test_server.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ struct http_test_server
8282
script_handle_t launch_python_script(const boost::filesystem::path& python_script_path) {
8383
using namespace boost::filesystem;
8484

85-
path::string_type script_name = python_script_path.filename();
85+
path::string_type script_name = python_script_path.filename().string();
8686
path::string_type script_dir = python_script_path.parent_path().string();
8787

8888
#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
@@ -139,7 +139,7 @@ struct http_test_server
139139
// set the CGI script execute permission
140140
for (directory_iterator i(cgibin_path); i != directory_iterator(); ++i) {
141141
if (is_regular_file(i->status())) {
142-
path::string_type file_path = i->path().file_string();
142+
path::string_type file_path = i->path().string();
143143
if (chmod(file_path.c_str(), S_IWUSR|S_IXUSR|S_IXGRP|S_IXOTH|S_IRUSR|S_IRGRP|S_IROTH) != 0)
144144
return false;
145145
}

0 commit comments

Comments
 (0)