MCPcopy Create free account
hub / github.com/vastsa/FileCodeBox / save_chunk

Method save_chunk

core/storage.py:62–71  ·  view source on GitHub ↗

保存分片文件 :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)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected