On Windows, shutil.move doesn't raise FileExistsError if dst exists like os.rename
Open
Nobody has claimed this yet.
3.10
3.9 (EOL)
OS-windows
stdlib
type-bug
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 36k
- PR merge metrics
- PR metrics pending
Description
| BPO | 42929 |
|---|---|
| Nosy | @pfmoore, @tjguk, @zware, @serhiy-storchaka, @eryksun, @zooba, @fireattack |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = None
created_at = <Date 2021-01-14.21:29:10.072>
labels = ['3.10', 'type-bug', 'library', '3.9', 'OS-windows']
title = "On Windows, shutil.move doesn't raise FileExistsError if dst exists like os.rename"
updated_at = <Date 2021-01-15.16:18:14.404>
user = 'https://github.com/fireattack'
bugs.python.org fields:
activity = <Date 2021-01-15.16:18:14.404>
actor = 'eryksun'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)', 'Windows']
creation = <Date 2021-01-14.21:29:10.072>
creator = 'fireattack'
dependencies = []
files = []
hgrepos = []
issue_num = 42929
keywords = []
message_count = 5.0
messages = ['385083', '385084', '385090', '385107', '385116']
nosy_count = 7.0
nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'serhiy.storchaka', 'eryksun', 'steve.dower', 'fireattack']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue42929'
versions = ['Python 3.9', 'Python 3.10']
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names shutil.move and os.rename as the entry points; start by comparing their Windows behavior when dst already exists. Reproduce the case on Windows and locate the relevant library tests. The work is done when the requested FileExistsError behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100