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

Method delete_file

core/storage.py:133–136  ·  view source on GitHub ↗
(self, file_code: FileCodes)

Source from the content-addressed store, hash-verified

131 await asyncio.to_thread(self._save, file.file, safe_save_path)
132
133 async def delete_file(self, file_code: FileCodes):
134 save_path = self.root_path / await file_code.get_file_path()
135 if save_path.exists():
136 save_path.unlink()
137
138 async def get_file_url(self, file_code: FileCodes):
139 return await get_file_url(file_code.code)

Callers

nothing calls this directly

Calls 2

get_file_pathMethod · 0.80
existsMethod · 0.80

Tested by

no test coverage detected