kduy
9/14/2018 - 3:50 AM

scalabel

Annotation tool

import boto3

client = boto3.client('s3')
result = client.list_objects(Bucket='**-***',
                             Prefix='vehicle/2017P3782/mileage/5896/original/',
                             Delimiter='/'
# branch                     )
# for o in result.get('CommonPrefixes'):
#     print(o.get('Prefix'))

### leaf
# for o in result.get('Contents'):
#     print(o.get('Key'))