-
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: CopyFS overwrites existing file in destination. #68895
Comments
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
cc @panjf2000 |
should |
See also #62484 (comment) |
I missed that discussion at the time, but now as far as I'm concerned we should replace |
Change https://go.dev/cl/606095 mentions this issue: |
@gopherbot please create a backport to 1.23, it's a mismatch of doc and actual behavior. |
Backport issue(s) opened: #68907 (for 1.23). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases. |
Go version
go version go1.23.0 darwin/amd64
Output of
go env
in your module/workspace:What did you do?
The doc of os.CopyFS says:
CopyFS will not overwrite existing files, and returns an error if a file name in fsys already exists in the destination.
. Sodest/file
should not be overwritten.What did you see happen?
src
What did you expect to see?
dest
The text was updated successfully, but these errors were encountered: