filesystem::equivalent does not work for UNC paths on Windows
Hello! Its seems as if the Windows implementation of filesystem::equivalent can't handle UNC paths. While Windows is usually quite tolerant concerning the path separator / versus \, CreateFile* seems not to understand an UNC path containing // instead of \\. My proposal to fix that is to replace the call of the string() member function by the native_file_string() member function. What do you think? Greetings from Bremen, Daniel
Daniel Krügler wrote:
Hello!
Its seems as if the Windows implementation of filesystem::equivalent can't handle UNC paths.
While Windows is usually quite tolerant concerning the path separator / versus \, CreateFile* seems not to understand an UNC path containing // instead of \\.
My proposal to fix that is to replace the call of the string() member function by the native_file_string() member function.
What do you think?
I understand now, why nobody answers. I found out, that the problematic boost version was 1.32 where the final ::stat check caused the problem... Nice weekend for everyone, Daniel
participants (1)
-
Daniel Krügler