Skip to main content

write_file

AsyncMethod
This is a method of the SandboxProtocol class in the protocols module.
Write a file to the sandbox.

Signature

async def write_file(path: str, content: Union[str, bytes]) -> bool

Parameters

path
str
required
Path within sandbox
content
Union
required
File content

Returns

Returns
bool
True if successful