Skip to content

Commit f9fb8b1

Browse files
committed
Fix file paths
1 parent c7c9bd3 commit f9fb8b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

example/example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ async def create_and_replace_document_item(client: Client, vault_id: str):
430430
ItemSection(id="", title=""),
431431
],
432432
document=DocumentCreateParams(
433-
name="file.txt", content=Path("/path/to/your/file.txt").read_bytes()
433+
name="file.txt", content=Path("./example/file2.txt").read_bytes()
434434
),
435435
)
436436
created_item = await client.items.create(to_create)
@@ -484,7 +484,7 @@ async def create_attach_and_delete_file_field_item(client: Client, vault_id: str
484484
files=[
485485
FileCreateParams(
486486
name="file.txt",
487-
content=Path("/path/to/your/file.txt").read_bytes(),
487+
content=Path("./example/file2.txt").read_bytes(),
488488
sectionId="",
489489
fieldId="file_field",
490490
)

0 commit comments

Comments
 (0)