MCPcopy Index your code
hub / github.com/vastsa/FileCodeBox / _read_chunk

Method _read_chunk

core/storage.py:758–762  ·  view source on GitHub ↗

同步读取分片

(self, chunk_path: str)

Source from the content-addressed store, hash-verified

756 await asyncio.to_thread(self._save_chunk, chunk_path, chunk_data)
757
758 def _read_chunk(self, chunk_path: str) -> bytes:
759 """同步读取分片"""
760 path = self._get_path_str(chunk_path)
761 file_obj = self.root_path.get_by_path(path).get().execute_query()
762 return file_obj.get_content().execute_query().value
763
764 def _upload_merged(self, save_path: str, data: bytes):
765 """同步上传合并后的文件"""

Callers

nothing calls this directly

Calls 1

_get_path_strMethod · 0.95

Tested by

no test coverage detected