MCPcopy Create free account
hub / github.com/AstrBotDevs/AstrBot / _download_file

Function _download_file

tests/unit/test_message_tools.py:378–382  ·  view source on GitHub ↗
(_remote_path, local_path)

Source from the content-addressed store, hash-verified

376 return {"content": "_&exists_"}
377
378 async def _download_file(_remote_path, local_path):
379 assert local_path.endswith("report.txt")
380 assert "\\" not in local_path
381 with open(local_path, "w", encoding="utf-8") as file:
382 file.write("report")
383
384 booter = SimpleNamespace(
385 shell=SimpleNamespace(exec=AsyncMock(side_effect=_exec)),

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected