# Pastebin Kp6e29ZP file_bytes = open(file_path['filepath'], "rb").read() info = zipfile.ZipInfo(str(file_path['filename']), date_time=(1980, 1, 1, 00, 00, 00), ) info.compress_type=zipfile.ZIP_DEFLATED info.comment='Remarks go here' info.create_system=0 zf.writestr(info, file_bytes) print('here') zf.close()