保存分片文件 :param upload_id: 上传会话ID :param chunk_index: 分片索引 :param chunk_data: 分片数据 :param chunk_hash: 分片哈希值 :param save_path: 文件保存路径
(self, upload_id: str, chunk_index: int, chunk_data: bytes, chunk_hash: str, save_path: str)
| 60 | raise NotImplementedError |
| 61 | |
| 62 | async def save_chunk(self, upload_id: str, chunk_index: int, chunk_data: bytes, chunk_hash: str, save_path: str): |
| 63 | """ |
| 64 | 保存分片文件 |
| 65 | :param upload_id: 上传会话ID |
| 66 | :param chunk_index: 分片索引 |
| 67 | :param chunk_data: 分片数据 |
| 68 | :param chunk_hash: 分片哈希值 |
| 69 | :param save_path: 文件保存路径 |
| 70 | """ |
| 71 | raise NotImplementedError |
| 72 | |
| 73 | async def merge_chunks(self, upload_id: str, chunk_info: UploadChunk, save_path: str) -> tuple[str, str]: |
| 74 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected