Skip to content

Commit 89a2089

Browse files
use list_objects_v2 in readme
1 parent 7432338 commit 89a2089

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Basic Example
8282
assert await stream.read() == data
8383
8484
# list s3 objects using paginator
85-
paginator = client.get_paginator('list_objects')
85+
paginator = client.get_paginator('list_objects_v2')
8686
async for result in paginator.paginate(Bucket=bucket, Prefix=folder):
8787
for c in result.get('Contents', []):
8888
print(c)

0 commit comments

Comments
 (0)