read_file#

SandboxRuntime.read_file(instance_id: str, path: str) bytes[source]#

Read binary content from a file inside the sandbox.

Parameters:
  • instance_id (str) – Unique identifier of the sandbox instance.

  • path (str) – Path to the file inside the sandbox to read.

Returns:

File content as bytes.

Return type:

bytes