MCPcopy Create free account
hub / github.com/vastsa/FileCodeBox / save_file

Method save_file

core/storage.py:633–634  ·  view source on GitHub ↗
(self, file: UploadFile, save_path: str)

Source from the content-addressed store, hash-verified

631 self.root_path.get_by_path(path).upload(name, content).execute_query()
632
633 async def save_file(self, file: UploadFile, save_path: str):
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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected