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

Method _delete_chunk_dir

core/storage.py:825–832  ·  view source on GitHub ↗

同步删除分片目录

(self, chunk_dir: str)

Source from the content-addressed store, hash-verified

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 上的临时分片文件"""

Callers

nothing calls this directly

Calls 1

_get_path_strMethod · 0.95

Tested by

no test coverage detected