path/filepath: Join doesn't add the required \ after volume name in Windows #46990
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Windows
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
C:\ProgramData\MyHiddenFolder
What did you see instead?
C:ProgramData\MyHiddenFolder
Description
I am writing a cross-platform app and on Windows, I store some data in the ProgramData folder. It turns out there is no rule that
C:
drive should be the root all the time... So to make the application get root volume dynamically,Issue
filepath.Join is missing
\
afterC:
. That's literally its only purposeThe text was updated successfully, but these errors were encountered: