Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
update docs
0div93dc1f9d25bd
diff --git a/apps/web/src/app/(docs)/docs/filesystem/read-write/page.mdx b/apps/web/src/app/(docs)/docs/filesystem/read-write/page.mdxindex c61c586c0..b66e76ecc 100644--- a/apps/web/src/app/(docs)/docs/filesystem/read-write/page.mdx+++ b/apps/web/src/app/(docs)/docs/filesystem/read-write/page.mdx@@ -26,12 +26,28 @@ You can write files to the sandbox filesystem using the `files.write()` method.```jsimport { Sandbox } from '@e2b/code-interpreter'const sandbox = await Sandbox.create()++// Write single fileawait sandbox.files.write('/path/to/file', 'file content')++// Write multiple files+await sandbox.files.write([+ { path: "/path/to/a", data: "file content" },+ { path: "/another/path/to/b", data: "file content" }+])``````pythonfrom e2b_code_interpreter import Sandboxsandbox = Sandbox()++# Write single fileawait sandbox.files.write('/path/to/file', 'file content')++# Write multiple files+await sandbox.files.write([+ { "path": "/path/to/a", "data": "file content" },+ { "path": "another/path/to/b", "data": "file content" }+])```</CodeGroup>