Skip to main content

read_file

AsyncMethod
This is a method of the SandboxProtocol class in the protocols module.
Read a file from the sandbox.

Signature

async def read_file(path: str) -> Optional[Union[str, bytes]]

Parameters

path
str
required
Path within sandbox

Returns

Returns
Optional[Union[str, bytes]]
File content or None if not found