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: Create not working on windows network mapped drive #20619

Closed
chrislearn opened this issue Jun 9, 2017 · 4 comments
Closed

os: Create not working on windows network mapped drive #20619

chrislearn opened this issue Jun 9, 2017 · 4 comments

Comments

@chrislearn
Copy link

@chrislearn chrislearn commented Jun 9, 2017

Please answer these questions before submitting your issue. Thanks!

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

go version go1.8.3 windows/amd64

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=D:\Projects\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 PKG_CONFIG=pkg-config
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2

What did you do?

I created a network mapped drive in my windows pc, when I use os.Create to create a new file in that drive, it always report this error:

The system cannot find the path specified

What did you expect to see?

os.Create create a new file.

What did you see instead?

The system cannot find the path specified

image
image

@mattn

This comment has been minimized.

Copy link
Member

@mattn mattn commented Jun 9, 2017

s/os.Create now working/os.Create not working/ ?

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Jun 9, 2017

Are you sure that all the directories exist?

Please show us your code. Thanks.

@ianlancetaylor ianlancetaylor changed the title os.Create now working on windows network mapped drive os: Create not working on windows network mapped drive Jun 9, 2017
@ianlancetaylor ianlancetaylor added this to the Go1.9 milestone Jun 9, 2017
@bradfitz

This comment has been minimized.

Copy link
Contributor

@bradfitz bradfitz commented Jun 9, 2017

This was reported against "go version go1.8.3", so it's not a regression from 1.8 -> 1.9. Retargeting to 1.10.

@chrislearn

This comment has been minimized.

Copy link
Author

@chrislearn chrislearn commented Jun 9, 2017

Sorry, maybe this is my network error, it can not reproduce anymore.

@chrislearn chrislearn closed this Jun 9, 2017
@golang golang locked and limited conversation to collaborators Jun 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.