(fname: str, data: Union[bytes, str])
| 153 | os.makedirs(os.path.dirname(dest), exist_ok=True) |
| 154 | zf = zipfile.ZipFile(file=dest, mode='w', compression=zipfile.ZIP_STORED) |
| 155 | def zip_write_bytes(fname: str, data: Union[bytes, str]): |
| 156 | zf.writestr(fname, data) |
| 157 | return '', zip_write_bytes, zf.close |
| 158 | else: |
| 159 | # If the output folder already exists, check that is is |
nothing calls this directly
no outgoing calls
no test coverage detected