简体中文
files.read()
import { Sandbox } from '@e2b/code-interpreter' const sandbox = await Sandbox.create() const fileContent = await sandbox.files.read('/path/to/file')
files.write()
import { Sandbox } from '@e2b/code-interpreter' const sandbox = await Sandbox.create() await sandbox.files.write('/path/to/file', 'file content')
import { Sandbox } from '@e2b/code-interpreter' const sandbox = await Sandbox.create() await sandbox.files.write([ { path: '/path/to/a', data: 'file content' }, { path: '/another/path/to/b', data: 'file content' } ])