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

Method merge_chunks

core/storage.py:73–81  ·  view source on GitHub ↗

合并分片文件并返回文件路径和完整哈希值 :param upload_id: 上传会话ID :param chunk_info: 分片信息 :param save_path: 文件保存路径 :return: (文件路径, 文件哈希值)

(self, upload_id: str, chunk_info: UploadChunk, save_path: str)

Source from the content-addressed store, hash-verified

71 raise NotImplementedError
72
73 async def merge_chunks(self, upload_id: str, chunk_info: UploadChunk, save_path: str) -> tuple[str, str]:
74 """
75 合并分片文件并返回文件路径和完整哈希值
76 :param upload_id: 上传会话ID
77 :param chunk_info: 分片信息
78 :param save_path: 文件保存路径
79 :return: (文件路径, 文件哈希值)
80 """
81 raise NotImplementedError
82
83 async def generate_presigned_upload_url(self, save_path: str, expires_in: int = 900) -> Optional[str]:
84 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected