We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go version
go version devel +d11df8baa8 Sun Apr 22 22:32:11 2018 +0000 windows/amd64
Yes
go env
Windows7 64bit
package main import ( "fmt" "os" ) func main() { fmt.Println(os.Stat("*.go")) }
return error
not return error
This is broken in e83601b, I guess. FindFirstFile resolve wildcard. So if *.go exists, os.Stat("*.go") doesn not fail.
*.go
This wildcard must no be accepted.
cc: @alexbrainman
The text was updated successfully, but these errors were encountered:
Change https://golang.org/cl/108755 mentions this issue: os: check error ERROR_INVALID_NAME from GetFileAttributeEx in os.Stat("*.txt")
os: check error ERROR_INVALID_NAME from GetFileAttributeEx in os.Stat("*.txt")
Sorry, something went wrong.
Change https://golang.org/cl/108776 mentions this issue: os: check error ERROR_INVALID_NAME from GetFileAttributeEx in os.Stat("*.txt")
e656aeb
No branches or pull requests
What version of Go are you using (
go version
)?go version devel +d11df8baa8 Sun Apr 22 22:32:11 2018 +0000 windows/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?Windows7 64bit
What did you do?
What did you expect to see?
return error
What did you see instead?
not return error
This is broken in e83601b, I guess. FindFirstFile resolve wildcard. So if
*.go
exists, os.Stat("*.go") doesn not fail.This wildcard must no be accepted.
cc: @alexbrainman
The text was updated successfully, but these errors were encountered: