writeFile

open suspend override fun writeFile(context: Context, path: String, content: ByteArray): Result<Unit>

Writes a file in the calling session's workspace, creating missing parent directories.

Return

Success, or an EnvironmentException failure if the write fails.

Parameters

context

The caller's context, identifying the calling session.

path

Absolute path, or a path relative to the workspace root.

content

The raw bytes to write.