Skip to content
Snippets Groups Projects
Commit 99aa3e3d authored by Andre Meixner's avatar Andre Meixner :camera:
Browse files

Fixed SimoxUtility make_relative

parent 9a417900
No related branches found
No related tags found
No related merge requests found
......@@ -7,8 +7,8 @@ namespace simox::fs
//! Return path when appended to a_From will resolve to same as a_To
inline std::filesystem::path make_relative(std::filesystem::path a_From, std::filesystem::path a_To)
{
a_From = std::filesystem::absolute(a_From);
a_To = std::filesystem::absolute(a_To);
a_From = std::filesystem::canonical(a_From);
a_To = std::filesystem::canonical(a_To);
std::filesystem::path ret;
std::filesystem::path::const_iterator itrFrom(a_From.begin()), itrTo(a_To.begin());
// Find common base
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment