Skip to content

Windows os.Rename bad #3366

Closed
Closed
@gopherbot

Description

@gopherbot

by kfox1111:

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull", "hg update default", rebuild, and
retry
what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1. os.Rename('foo', 'file.that.already.exists')

What is the expected output?
The file be overwritten.

What do you see instead?
Error that file exists.

Which compiler are you using (5g, 6g, 8g, gccgo)?
8g

Which operating system are you using?
Windows

Which revision are you using?  (hg identify)
Newest weekly.

Please provide any additional information below.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions