清理 OneDrive 上的临时分片文件
(self, upload_id: str, save_path: str)
| 832 | raise e |
| 833 | |
| 834 | async def clean_chunks(self, upload_id: str, save_path: str): |
| 835 | """清理 OneDrive 上的临时分片文件""" |
| 836 | chunk_dir = str(Path(save_path).parent / "chunks" / upload_id) |
| 837 | try: |
| 838 | await asyncio.to_thread(self._delete_chunk_dir, chunk_dir) |
| 839 | except Exception as e: |
| 840 | logger.info(f"清理 OneDrive 分片时出错: {e}") |
| 841 | |
| 842 | def _file_exists(self, save_path: str) -> bool: |
| 843 | """同步检查文件是否存在""" |
nothing calls this directly
no outgoing calls
no test coverage detected