gulrak / filesystem

An implementation of C++17 std::filesystem for C++11 /C++14/C++17/C++20 on Windows, macOS, Linux and FreeBSD.
MIT License
1.31k stars 168 forks source link

canonical does not support device UNC path #171

Open forworldm opened 10 months ago

forworldm commented 10 months ago

Describe the bug canonical("//./UNC/localhost/c$/foo") throws exception

To Reproduce See above

Expected behavior MSVC STL gives \\localhost\c$\foo

Additional context OS Windows

maybe use GetFinalPathNameByHandleW

gulrak commented 10 months ago

I'll look into that. As I'm at a conference in a few days, it might take me until after it to fix it, at least there can not be a release before I'm back.