Appends a file with name filename_in_zip and contents of file_contents to the in-memory zip.
(self, filename_in_zip: str | zipfile.ZipInfo, file_contents: bytes | str)
| 31 | self.in_memory_zip.debug = debug |
| 32 | |
| 33 | def writestr(self, filename_in_zip: str | zipfile.ZipInfo, file_contents: bytes | str) -> None: |
| 34 | """Appends a file with name filename_in_zip and contents of |
| 35 | file_contents to the in-memory zip.""" |
| 36 | self.in_memory_zip.writestr(filename_in_zip, file_contents) |
| 37 | |
| 38 | def write_to_file(self, filename: str | bytes | PathLike[str] | PathLike[bytes] | int) -> None: |
| 39 | """Writes the in-memory zip to a file.""" |
no outgoing calls
no test coverage detected