[issue15795] Zipfile.extractall does not preserve file permissions

Alexey Boriskin report at bugs.python.org
Sat Sep 1 15:10:53 CEST 2012


Alexey Boriskin added the comment:

I'm attaching a patch, which solves the issue. Patch intoduces new argument "preserve_permissions" for extract and extractall methods. That argument may accept one of the three values: do not preserve permissions, preserve a safe subset of them or preserve all permissions. Three constants introduced for these options. Patch also contains test and docs. Tests pass for me on OS X 10.5, but I'm not sure if they'll pass on other operating systems.

----------
keywords: +patch
Added file: http://bugs.python.org/file27086/issue15795.patch

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


More information about the Python-bugs-list mailing list