I'm using zipfile
and under some circumstance I need to create an empty zip file for some placeholder purpose. How can I do this?
I know this:
Changed in version 2.7.1: If the file is created with mode 'a' or 'w' and then closed without adding any files to the archive, the appropriate ZIP structures for an empty archive will be written to the file.
but my server uses a lower version as 2.6.
empty_zip_data = b'PK\x05...
. – Douty