MUST be forward slashes '/' as opposed toīackwards slashes '\' for compatibility with AmigaĪnd UNIX file systems etc. The path stored MUST NOT contain a drive orĭevice letter, or a leading slash. ZIP File Format Specification version 6.3.9:Ĥ.4.17.1 The name of the file, with optional relative path. However, according to the specification for zip files, this is invalid. The generated zipfile contains "/some_folder/some_file.txt". My_zip.writestr('/some_folder/some_file.txt', 'Some content') My_zip = ZipFile(temporary_file.name, 'w') Temporary_file = tempfile.NamedTemporaryFile() Pull RequestsĪuthor: Garrison Taylor (garrison.taylor)Ĭurrently the zipfile library allows you to create invalid zip files. FFY00, andrei.avk, garrison.taylor, lukasz.langa, miss-islingtonĬreated on 20:28 by garrison.taylor, last changed 20:02 by lukasz.langa.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |