Skip to content

Commit 2293010

Browse files
authored
Merge d149e8b into fcb95c3
2 parents fcb95c3 + d149e8b commit 2293010

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@e2b/python-sdk': patch
3+
---
4+
5+
fix write_files docstring to correctly state that parent directories are auto-created

packages/python-sdk/e2b/sandbox_async/filesystem/filesystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ async def write_files(
237237
Writes a list of files to the filesystem.
238238
When writing to a file that doesn't exist, the file will get created.
239239
When writing to a file that already exists, the file will get overwritten.
240-
When writing to a file that's in a directory that doesn't exist, you'll get an error.
240+
When writing to a file at path that doesn't exist, the necessary directories will be created.
241241
242242
:param files: list of files to write as `WriteEntry` objects, each containing `path` and `data`
243243
:param user: Run the operation as this user

packages/python-sdk/e2b/sandbox_sync/filesystem/filesystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def write_files(
233233
Writes a list of files to the filesystem.
234234
When writing to a file that doesn't exist, the file will get created.
235235
When writing to a file that already exists, the file will get overwritten.
236-
When writing to a file that's in a directory that doesn't exist, you'll get an error.
236+
When writing to a file at path that doesn't exist, the necessary directories will be created.
237237
238238
:param files: list of files to write as `WriteEntry` objects, each containing `path` and `data`
239239
:param user: Run the operation as this user

0 commit comments

Comments
 (0)