Skip to content
New issue

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

os: MkdirAll(pathname,perm) failed with error "not a directory",if there is a file has same name with pathname. #57919

Closed
astzyj opened this issue Jan 19, 2023 · 1 comment

Comments

@astzyj
Copy link

astzyj commented Jan 19, 2023

What version of Go are you using (go version)?

$ go version
go version go1.19.4 darwin/arm64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOARCH="arm64"
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOOS="darwin"
GOVERSION="go1.19.4"

What did you do?

https://go.dev/play/p/FaEJY3--2zt

What did you expect to see?

mkdir/mkdirall should be responsible for creating a dir, but not affected by the file with same name.

What did you see instead?

dir-creating affected by the same-name file

@seankhliao
Copy link
Member

working as intended, names are unique

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For questions please refer to https://github.com/golang/go/wiki/Questions

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Jan 19, 2023
@golang golang locked and limited conversation to collaborators Jan 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants