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

Method _delete

core/storage.py:636–644  ·  view source on GitHub ↗
(self, save_path)

Source from the content-addressed store, hash-verified

634 await asyncio.to_thread(self._save, file, save_path)
635
636 def _delete(self, save_path):
637 path = self._get_path_str(save_path)
638 try:
639 self.root_path.get_by_path(path).delete_object().execute_query()
640 except self._ClientRequestException as e:
641 if e.code == "itemNotFound":
642 pass
643 else:
644 raise e
645
646 async def delete_file(self, file_code: FileCodes):
647 await asyncio.to_thread(self._delete, await file_code.get_file_path())

Callers

nothing calls this directly

Calls 1

_get_path_strMethod · 0.95

Tested by

no test coverage detected