{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/13673","labels_url":"https://api.github.com/repos/golang/go/issues/13673/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/13673/comments","events_url":"https://api.github.com/repos/golang/go/issues/13673/events","html_url":"https://github.com/golang/go/issues/13673","id":122933651,"number":13673,"title":"os: document that os.Rename will overwrite any existing file","user":{"login":"raboof","id":131856,"avatar_url":"https://avatars.githubusercontent.com/u/131856?v=3","gravatar_id":"","url":"https://api.github.com/users/raboof","html_url":"https://github.com/raboof","followers_url":"https://api.github.com/users/raboof/followers","following_url":"https://api.github.com/users/raboof/following{/other_user}","gists_url":"https://api.github.com/users/raboof/gists{/gist_id}","starred_url":"https://api.github.com/users/raboof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raboof/subscriptions","organizations_url":"https://api.github.com/users/raboof/orgs","repos_url":"https://api.github.com/users/raboof/repos","events_url":"https://api.github.com/users/raboof/events{/privacy}","received_events_url":"https://api.github.com/users/raboof/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/golang/go/labels/Documentation","name":"Documentation","color":"aaffaa"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/34","html_url":"https://github.com/golang/go/milestones/Go1.6Maybe","labels_url":"https://api.github.com/repos/golang/go/milestones/34/labels","id":1425772,"number":34,"title":"Go1.6Maybe","description":"Maybe this will happen for Go 1.6.\r\n","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars.githubusercontent.com/u/104030?v=3","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":2,"state":"open","created_at":"2015-11-23T18:39:45Z","updated_at":"2015-12-18T19:41:15Z","due_on":"2016-01-31T05:00:00Z","closed_at":null},"comments":3,"created_at":"2015-12-18T11:40:59Z","updated_at":"2015-12-21T17:07:36Z","closed_at":null,"body":"`TestRenameOverwriteDest` suggests that on all OS'es except plan9, when the target path of `os.Rename` already exists, it will be replaced.\r\n\r\nIt might be nice to add that to the docs: for example on Windows it is not obvious (syscall_windows.go explicitly adds the `MOVEFILE_REPLACE_EXISTING` flag - there's no way to tell without either looking at the code or testing)"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/166361222","html_url":"https://github.com/golang/go/issues/13673#issuecomment-166361222","issue_url":"https://api.github.com/repos/golang/go/issues/13673","id":166361222,"user":{"login":"ianlancetaylor","id":3194333,"avatar_url":"https://avatars.githubusercontent.com/u/3194333?v=3","gravatar_id":"","url":"https://api.github.com/users/ianlancetaylor","html_url":"https://github.com/ianlancetaylor","followers_url":"https://api.github.com/users/ianlancetaylor/followers","following_url":"https://api.github.com/users/ianlancetaylor/following{/other_user}","gists_url":"https://api.github.com/users/ianlancetaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/ianlancetaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianlancetaylor/subscriptions","organizations_url":"https://api.github.com/users/ianlancetaylor/orgs","repos_url":"https://api.github.com/users/ianlancetaylor/repos","events_url":"https://api.github.com/users/ianlancetaylor/events{/privacy}","received_events_url":"https://api.github.com/users/ianlancetaylor/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T17:07:36Z","updated_at":"2015-12-21T17:07:36Z","body":"os.Rename uses windows.Rename from internal/syscall/windows."}}