MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / _FileOps

Class _FileOps

e2e/python/test_sandbox_api.py:18–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 sandbox_client: SandboxClient,
17) -> None:
18 class _FileOps:
19 def write(self, path: str, content: str) -> None:
20 from pathlib import Path
21
22 Path(path).write_text(content)
23
24 def read(self, path: str) -> str:
25 from pathlib import Path
26
27 return Path(path).read_text()
28
29 with sandbox(delete_on_exit=True) as sb:
30 assert sb.id

Callers 1

Calls

no outgoing calls

Tested by 1