We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47e46bc commit 979f089Copy full SHA for 979f089
examples/server/main.cpp
@@ -1774,7 +1774,7 @@ std::vector<std::string> list_files(const std::string& dir_path) {
1774
if (dir_path != "")
1775
for (const auto& entry : fs::recursive_directory_iterator(dir_path)) {
1776
if (entry.is_regular_file()) {
1777
- auto relative_path = fs::relative(entry.path(), dir_path);
+ auto relative_path = entry.path().lexically_relative(dir_path);
1778
std::string path_str = relative_path.string();
1779
std::replace(path_str.begin(), path_str.end(), '\\', '/');
1780
files.push_back(path_str);
0 commit comments