great thanks. the best way to handle paths to avoid this problems is to use std::filesystem::path which when compared doens't do a strict string comparison and will work for / or \ or double // or even comparing absolute and relative paths if they exist. you just need to wrap the string for the path like:
std::filesystem::path("some/path") == std::filesystem::path("some//path")
which should return true