This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients mbussonn, serhiy.storchaka, takluyver
Date 2016-01-07.16:07:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452182837.76.0.861526869284.issue26039@psf.upfronthosting.co.za>
In-reply-to
Content
issue11980 has a patch that adds a method for writing a file into the ZIP archive.

But more flexible way is to add the support of the "w" mode to ZipFile.open(). This will allow to write a data that doesn't exist in memory at once, nor in disk, but is loaded by chunks from the pipe, or from the socket, or from other archive, or just generated on fly. I'm worked on this, but this feature needed to add support of some other features. For example writing to unseekable file (already implemented) or writing and reading a file without known size (not implemented still).

issue18595 has a proposition to add special methods for creating symlinks, directories etc.
History
Date User Action Args
2016-01-07 16:07:17serhiy.storchakasetrecipients: + serhiy.storchaka, takluyver, mbussonn
2016-01-07 16:07:17serhiy.storchakasetmessageid: <1452182837.76.0.861526869284.issue26039@psf.upfronthosting.co.za>
2016-01-07 16:07:17serhiy.storchakalinkissue26039 messages
2016-01-07 16:07:17serhiy.storchakacreate