Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Fix write operation description
Jakub Novak7356efc2bb9c
diff --git a/packages/js-sdk/src/sandbox/filesystem/index.ts b/packages/js-sdk/src/sandbox/filesystem/index.tsindex df505d073..eae381ff9 100644--- a/packages/js-sdk/src/sandbox/filesystem/index.ts+++ b/packages/js-sdk/src/sandbox/filesystem/index.ts@@ -145,7 +145,7 @@ export class Filesystem {* Writes content to a file on the path.* When writing to a file that doesn't exist, the file will get created.* When writing to a file that already exists, the file will get overwritten.- * When writing to a file that's in a directory that doesn't exist, you'll get an error.+ * When writing to a file that's in a directory that doesn't exist, the directory will get created.** @param path Path to a new file. For example '/dirA/dirB/newFile.txt' when creating 'newFile.txt'* @param data Data to write to a new filediff --git a/packages/python-sdk/e2b/sandbox_async/filesystem/filesystem.py b/packages/python-sdk/e2b/sandbox_async/filesystem/filesystem.pyindex 6a47433af..ed16239b6 100644--- a/packages/python-sdk/e2b/sandbox_async/filesystem/filesystem.py+++ b/packages/python-sdk/e2b/sandbox_async/filesystem/filesystem.py@@ -116,7 +116,7 @@ class Filesystem:Writes content to a file on the path.When writing to a file that doesn't exist, the file will get created.When writing to a file that already exists, the file will get overwritten.- When writing to a file that's in a directory that doesn't exist, you'll get an error.+ When writing to a file that's in a directory that doesn't exist, the directory will get created.:param path: Path to the file:param data: Data to write to the filediff --git a/packages/python-sdk/e2b/sandbox_sync/filesystem/filesystem.py b/packages/python-sdk/e2b/sandbox_sync/filesystem/filesystem.pyindex 0813176e2..fac8eca58 100644--- a/packages/python-sdk/e2b/sandbox_sync/filesystem/filesystem.py+++ b/packages/python-sdk/e2b/sandbox_sync/filesystem/filesystem.py@@ -114,7 +114,7 @@ class Filesystem:Writes content to a file on the path.When writing to a file that doesn't exist, the file will get created.When writing to a file that already exists, the file will get overwritten.- When writing to a file that's in a directory that doesn't exist, you'll get an error.+ When writing to a file that's in a directory that doesn't exist, the directory will get created.:param path: Path to the file:param data: Data to write to the file