You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
instead of FileSystem.Rename directly.
Dir.Rename's behavior wrt overwriting existing files and directories is
OS-dependent.
Fixesgolang/go#9786
Change-Id: If42728caa6f0f38f8e3d6b1fcdda8c2d272080d6
Reviewed-on: https://go-review.googlesource.com/4341
Reviewed-by: Nick Cooper <nmvc@google.com>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
C:>go test golang.org/x/net/webdav
--- FAIL: TestDir (0.00s)
file_test.go:506: test case #65 "rename /c /d/n/q want ok": got "errExist" (rename C:\DOCUME
1\brainman\LOCALS1\Temp\webdav-test593615143\c C:\DOCUME1\brainman\LOCALS1\Temp\webdav-test593615143\d\n\q: Cannot create a file when that file already exists.), want "ok"FAIL
FAIL golang.org/x/net/webdav 0.547s
This is broken on windows builders too.
Alex
The text was updated successfully, but these errors were encountered: