Skip to content
Snippets Groups Projects
Commit 1cb1b98e authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Use weakly_canonical() to allow non-existing paths

parent 676f7275
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,8 @@ namespace simox::fs
inline std::filesystem::path
make_relative(std::filesystem::path a_From, std::filesystem::path a_To)
{
a_From = std::filesystem::canonical(a_From);
a_To = std::filesystem::canonical(a_To);
a_From = std::filesystem::weakly_canonical(a_From);
a_To = std::filesystem::weakly_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