-
Notifications
You must be signed in to change notification settings - Fork 192
Open
Labels
WindowsWindows platform is affectedWindows platform is affectedbugSomething isn't workingSomething isn't working
Description
Describe the bug
Appending to an UNC path with only the host name (e.g., \\server
) doesn't append the preferred separator before the appended path.
If the UNC path contains share names (e.g., \\server\share
), appending works fine.
To Reproduce
Code:
namespace fs = std::filesystem;
namespace gfs = ghc::filesystem;
std::cout << (fs::path{"\\\\server"} / "abc") << " vs " << (gfs::path{"\\\\server"} / "abc") << std::endl;
Output:
"\\\\server\\abc" vs "\\\\serverabc"
Expected behavior
When appending to the path, the preferred path separator should also be appended before the appended path (in the example, \\\\server\\abc
).
Additional context
Metadata
Metadata
Assignees
Labels
WindowsWindows platform is affectedWindows platform is affectedbugSomething isn't workingSomething isn't working