Skip to content

Instantly share code, notes, and snippets.

@sagar290
Created February 1, 2021 06:40
Show Gist options
  • Select an option

  • Save sagar290/e3dc2ac45a70a730dec695e69ec2a941 to your computer and use it in GitHub Desktop.

Select an option

Save sagar290/e3dc2ac45a70a730dec695e69ec2a941 to your computer and use it in GitHub Desktop.
import boto3
s3 = boto3.client('s3')
for obj in s3.list_objects_v2(Bucket="lms10", Prefix="adm/")['Contents']:
print(obj['Key'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment