Subject: | Win32 canonpath should not strip trailing slash from UNC volumes |
Currently Win32 canonpath does this:
\\server\share\ -> \\server\share
I think this is wrong because those two result in different values from splitpath(). In the first case, you get "\\server\share" as the volume and "\" as the directory. In the second, you get an empty string as the directory.
I think canonpath should keep the trailing slash so that splitpath clearly indicates that the path refers to a root directory.