def get_bucket_contents(self):
contents = s3_utils.s3.list_objects(Bucket = settings.AWS_STORAGE_BUCKET_NAME)
bucket_contents = []
if 'Contents' in contents:
for obj in contents['Contents']:
bucket_contents.append(obj['Key'])
return bucket_contents
评论列表
文章目录