-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: Windows: MkdirAll fails with valid path that starts with \\? (e.g. \\?\D:\test) #22230
Comments
Mkdir just calls correspondent Windows API, so it succeeds with whatever path it is given. But MkdirAll recursively calls itself for its parameters parent directory. It finds parent directory by looking for path delimiter in the file path and taking whatever is on the left. When file path is I also noticed that path/filepath does not handle Alex |
An rclone user has noticed this in rclone/rclone#1754 However it seemed to work for me in Windows 7 so maybe this is a specific Windows 10 problem? |
I replied on rclone/rclone#1754 . Perhaps that answers your question. Alex |
Change https://golang.org/cl/86295 mentions this issue: |
What version of Go are you using (
go version
)?1.9
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\xxx\go
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0
set CXX=g++
set CGO_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
What did you do?
precondition: Directory D:\test does not exist
https://play.golang.org/p/Z2ONpbvDyV
What did you expect to see?
os.Mkdir and os.MkdirAll will create the directory
What did you see instead?
os.MkdirAll fails with an error
The text was updated successfully, but these errors were encountered: