同步读取分片
(self, chunk_path: str)
| 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 | """同步上传合并后的文件""" |
nothing calls this directly
no test coverage detected