Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
os: Create does not return error on filename with colon(:) on Windows #13035
What version of Go are you using (go version)?
What operating system and processor architecture are you using?
What did you do?
Sorry for not using playground, still got 403 in Hong Kong.
What did you expect to see?
What did you see instead?
I think what you are seeing is NTFS alternative files streams, you've created a file called test, and in the alternative stream the sting "testing" is written.
I think windows explorer doesn't show this properly, but should be able to reopen the same file you created and check for the contents.
Wow, that's just eye opening, thanks so much for the response.
By opening the file using the same file name, I can read back the same content.
Since it's a platform-specific feature instead, I will close the issue.
I think we'll have to chalk this up to a feature :)
It's only available on Windows, using NTFS.