windows std::filesystem fixes

This commit is contained in:
georgemoralis 2024-07-15 14:50:23 +03:00
parent ba0be91c73
commit 0298889131
4 changed files with 11 additions and 11 deletions

View file

@ -74,7 +74,7 @@ std::filesystem::path MntPoints::GetHostPath(const std::string& guest_directory)
bool found_match = false;
for (const auto& path : std::filesystem::directory_iterator(current_path)) {
const auto candidate = path.path().filename();
const auto filename = Common::ToLower(candidate);
const auto filename = Common::ToLower(candidate.string());
// Check if a filename matches in case insensitive manner.
if (filename != part_low) {
continue;