[issue15795] Zipfile.extractall does not preserve file permissions

2015-03-03 Thread Alexey Boriskin
Alexey Boriskin added the comment: I'm working on updating the patch to unify tarfile and zipfile interfaces and to restore owner/timestamp for zipfile -- ___ Python tracker <http://bugs.python.org/is

[issue15795] Zipfile.extractall does not preserve file permissions

2012-09-01 Thread Alexey Boriskin
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 t

[issue15795] Zipfile.extractall does not preserve file permissions

2012-09-01 Thread Alexey Boriskin
Changes by Alexey Boriskin : -- hgrepos: +147 ___ Python tracker <http://bugs.python.org/issue15795> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15795] Zipfile.extractall does not preserve file permissions

2012-08-27 Thread Alexey Boriskin
New submission from Alexey Boriskin: Zipfile._extract_member does not preserve file permissions while extracting it. As may be seen at link[1], raw open() is used and no os.chmod() applied after that, therefore any permission data stored in zipfile is dropped and file is created with default