同步删除分片目录
(self, chunk_dir: str)
| 823 | return save_path, file_sha256.hexdigest() |
| 824 | |
| 825 | def _delete_chunk_dir(self, chunk_dir: str): |
| 826 | """同步删除分片目录""" |
| 827 | try: |
| 828 | path = self._get_path_str(chunk_dir) |
| 829 | self.root_path.get_by_path(path).delete_object().execute_query() |
| 830 | except self._ClientRequestException as e: |
| 831 | if e.code != "itemNotFound": |
| 832 | raise e |
| 833 | |
| 834 | async def clean_chunks(self, upload_id: str, save_path: str): |
| 835 | """清理 OneDrive 上的临时分片文件""" |
nothing calls this directly
no test coverage detected