Alex Joseph
12/04/2020, 7:41 PMS3List
with prefix
and delimiter
(trying to list "folders" in an S3prefix, say) I get an empty array:
S3List(config['input_bucket_name']).run(prefix=test, delimiter="/", max_items=10)
If I run it manually using boto, I'm able to get results:
import boto3
client = boto3.client('s3')
paginator = client.get_paginator('list_objects')
result = paginator.paginate(Bucket=config['input_bucket_name'], Delimiter='/', Prefix=test)
for prefix in result.search('CommonPrefixes'):
print(prefix.get('Prefix'))
Is this expected behavior?CommonPrefixes
rather than the Contents
(or get both)nicholas
S3List
task for that? 🙂Alex Joseph
12/05/2020, 5:45 PM