diff --git a/src/core/file_sys/fs.cpp b/src/core/file_sys/fs.cpp index 5f462937..f2fda657 100644 --- a/src/core/file_sys/fs.cpp +++ b/src/core/file_sys/fs.cpp @@ -64,8 +64,8 @@ std::filesystem::path MntPoints::GetHostPath(const std::string& guest_directory) while (!path_parts.empty()) { const auto& part = path_parts.back(); const auto add_match = [&](const auto& host_part) { - current_path += host_part; - guest_path += part; + current_path /= host_part; + guest_path /= part; path_cache[guest_path] = current_path; path_parts.pop_back(); };