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.mdx index c61c586c0..ba8d09ef0 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 @@ -2,7 +2,7 @@ ## Reading files -You can read files from the sandbox filesystem using the `files.reado()` method. +You can read files from the sandbox filesystem using the `files.read()` method. ```js @@ -26,12 +26,18 @@ You can write files to the sandbox filesystem using the `files.write()` method. ```js import { Sandbox } from '@e2b/code-interpreter' const sandbox = await Sandbox.create() -await sandbox.files.write('/path/to/file', 'file content') +await sandbox.files.write([ + { path: "/path/to/a", data: "file content" }, + { path: "/another/path/to/b", data: "file content" } +]) ``` ```python from e2b_code_interpreter import Sandbox sandbox = Sandbox() -await sandbox.files.write('/path/to/file', 'file content') +await sandbox.files.write([ + { "path": "/path/to/a", "data": "file content" }, + { "path": "another/path/to/b", "data": "file content" } +]) ```