Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

fix: correct write_files docstring about directory auto-creation (#1260)

Berryf667f335c645
diff --git a/.changeset/fix-write-files-docstring.md b/.changeset/fix-write-files-docstring.md
new file mode 100644
index 000000000..1147135ad
--- /dev/null
+++ b/.changeset/fix-write-files-docstring.md
@@ -0,0 +1,5 @@
+---
+'@e2b/python-sdk': patch
+---
+
+fix write_files docstring to correctly state that parent directories are auto-created
diff --git a/packages/python-sdk/e2b/sandbox_async/filesystem/filesystem.py b/packages/python-sdk/e2b/sandbox_async/filesystem/filesystem.py
index 8f70f58a1..5b9f19a15 100644
--- a/packages/python-sdk/e2b/sandbox_async/filesystem/filesystem.py
+++ b/packages/python-sdk/e2b/sandbox_async/filesystem/filesystem.py
@@ -237,7 +237,7 @@ class Filesystem:
Writes a list of files to the filesystem.
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 at path that doesn't exist, the necessary directories will be created.
:param files: list of files to write as `WriteEntry` objects, each containing `path` and `data`
:param user: Run the operation as this user
diff --git a/packages/python-sdk/e2b/sandbox_sync/filesystem/filesystem.py b/packages/python-sdk/e2b/sandbox_sync/filesystem/filesystem.py
index 9b26a22d0..8a5bc0aa8 100644
--- a/packages/python-sdk/e2b/sandbox_sync/filesystem/filesystem.py
+++ b/packages/python-sdk/e2b/sandbox_sync/filesystem/filesystem.py
@@ -233,7 +233,7 @@ class Filesystem:
Writes a list of files to the filesystem.
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 at path that doesn't exist, the necessary directories will be created.
:param files: list of files to write as `WriteEntry` objects, each containing `path` and `data`
:param user: Run the operation as this user