[New-bugs-announce] [issue6050] zipfile: Extracting a directory that already exists generates an OSError

Joe Amenta report at bugs.python.org
Mon May 18 07:01:44 CEST 2009


New submission from Joe Amenta <amentajo at msu.edu>:

zipfile.ZipFile.extract() fails if targetpath is a directory that
already exists.

Bug revealed itself on Ubuntu, using extractall().

Happened on the latest 3.1 and 2.7.

Attached a patch that I think will fix this issue.

----------
components: Library (Lib)
files: zipdiff.diff
keywords: patch
messages: 88014
nosy: joe.amenta
severity: normal
status: open
title: zipfile: Extracting a directory that already exists generates an OSError
versions: Python 2.7, Python 3.1
Added file: http://bugs.python.org/file14005/zipdiff.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6050>
_______________________________________


More information about the New-bugs-announce mailing list