(self, file_code: FileCodes)
| 720 | raise HTTPException(status_code=503, detail="服务代理下载异常,请稍后再试") |
| 721 | |
| 722 | async def get_file_url(self, file_code: FileCodes): |
| 723 | if self.proxy: |
| 724 | return await get_file_url(file_code.code) |
| 725 | else: |
| 726 | return await asyncio.to_thread( |
| 727 | self._get_file_url, |
| 728 | await file_code.get_file_path(), |
| 729 | f"{file_code.prefix}{file_code.suffix}", |
| 730 | ) |
| 731 | |
| 732 | def _save_chunk(self, chunk_path: str, chunk_data: bytes): |
| 733 | """同步保存分片到 OneDrive""" |
nothing calls this directly
no test coverage detected