[issue22219] python -mzipfile fails to add empty folders to created zip

2014-10-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue22219] python -mzipfile fails to add empty folders to created zip

2014-10-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 911da1072099 by Serhiy Storchaka in branch '2.7': Issue #22219: The zipfile module CLI now adds entries for directories https://hg.python.org/cpython/rev/911da1072099 New changeset 981d18930d6d by Serhiy Storchaka in branch '3.4': Issue #22219: The

[issue22219] python -mzipfile fails to add empty folders to created zip

2014-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Hmm, looks as I forgot to attach a patch. -- keywords: +patch Added file: http://bugs.python.org/file36706/zipfile_add_dirs.patch ___ Python tracker _

[issue22219] python -mzipfile fails to add empty folders to created zip

2014-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If there are no objections I'll commit the patch soon. -- ___ Python tracker ___ ___ Python-bugs-l

[issue22219] python -mzipfile fails to add empty folders to created zip

2014-08-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think zipfile should add an entry for directories as zip tool does. Here is a patch. In additional it fixes zipfile -c for some corner cases (when arguments end with /, . or .. component). -- stage: needs patch -> patch review

[issue22219] python -mzipfile fails to add empty folders to created zip

2014-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Directory entry should be added not only when directory is empty. See also issue20912. -- ___ Python tracker ___

[issue22219] python -mzipfile fails to add empty folders to created zip

2014-08-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> needs patch type: -> behavior versions: +Python 2.7 ___ Python tracker ___ ___

[issue22219] python -mzipfile fails to add empty folders to created zip

2014-08-17 Thread Antony Lee
New submission from Antony Lee: Compare $ mkdir foo; zip -q foo{,}; unzip -l foo.zip Archive: foo.zip Length DateTimeName - -- - 0 2014-08-17 10:49 foo/ - --- 0 1 file and $ mkdir