import boto3
import boto3.session
# from botocore.exceptions import ClientError


def main():
    session = boto3.session.Session()
    s3client = session.client(
        's3',
        use_ssl=False,
        endpoint_url='http://192.168.99.100:8080',
        aws_access_key_id='UEF4ZL22-B2YKBJ0QZBL',
        aws_secret_access_key='vImVW0uuw0e4NmWFV6UMrVX6b0dzDERx3FuTYA==')

    bucket = '52138c33-4043-4a85-a23c-9ec9d4fd48f1'

    response = s3client.list_objects(Bucket=bucket, Delimiter='/',
            Prefix='secrets/keys/keys/')
    dirs = list()
    dirs = [d.get('Prefix', None).split('/')[1] for d in response.get('CommonPrefixes', [])]
    files = [f.get('Key', None).split('/')[1] for f in response.get('Contents', [])]
    print('Directories ->', dirs)
    print('Files ->', files)




if __name__ == '__main__':
    main()

1f58ef1758501a50cc13fa826a321cfa884fb251
<mask token>

<mask token>


def main():
    session = boto3.session.Session()
    s3client = session.client('s3', use_ssl=False, endpoint_url=
        'http://192.168.99.100:8080', aws_access_key_id=
        'UEF4ZL22-B2YKBJ0QZBL', aws_secret_access_key=
        'vImVW0uuw0e4NmWFV6UMrVX6b0dzDERx3FuTYA==')
    bucket = '52138c33-4043-4a85-a23c-9ec9d4fd48f1'
    response = s3client.list_objects(Bucket=bucket, Delimiter='/', Prefix=
        'secrets/keys/keys/')
    dirs = list()
    dirs = [d.get('Prefix', None).split('/')[1] for d in response.get(
        'CommonPrefixes', [])]
    files = [f.get('Key', None).split('/')[1] for f in response.get(
        'Contents', [])]
    print('Directories ->', dirs)
    print('Files ->', files)


<mask token>

<mask token>


def main():
    session = boto3.session.Session()
    s3client = session.client('s3', use_ssl=False, endpoint_url=
        'http://192.168.99.100:8080', aws_access_key_id=
        'UEF4ZL22-B2YKBJ0QZBL', aws_secret_access_key=
        'vImVW0uuw0e4NmWFV6UMrVX6b0dzDERx3FuTYA==')
    bucket = '52138c33-4043-4a85-a23c-9ec9d4fd48f1'
    response = s3client.list_objects(Bucket=bucket, Delimiter='/', Prefix=
        'secrets/keys/keys/')
    dirs = list()
    dirs = [d.get('Prefix', None).split('/')[1] for d in response.get(
        'CommonPrefixes', [])]
    files = [f.get('Key', None).split('/')[1] for f in response.get(
        'Contents', [])]
    print('Directories ->', dirs)
    print('Files ->', files)


if __name__ == '__main__':
    main()

import boto3
import boto3.session


def main():
    session = boto3.session.Session()
    s3client = session.client('s3', use_ssl=False, endpoint_url=
        'http://192.168.99.100:8080', aws_access_key_id=
        'UEF4ZL22-B2YKBJ0QZBL', aws_secret_access_key=
        'vImVW0uuw0e4NmWFV6UMrVX6b0dzDERx3FuTYA==')
    bucket = '52138c33-4043-4a85-a23c-9ec9d4fd48f1'
    response = s3client.list_objects(Bucket=bucket, Delimiter='/', Prefix=
        'secrets/keys/keys/')
    dirs = list()
    dirs = [d.get('Prefix', None).split('/')[1] for d in response.get(
        'CommonPrefixes', [])]
    files = [f.get('Key', None).split('/')[1] for f in response.get(
        'Contents', [])]
    print('Directories ->', dirs)
    print('Files ->', files)


if __name__ == '__main__':
    main()

import boto3
import boto3.session
# from botocore.exceptions import ClientError


def main():
    session = boto3.session.Session()
    s3client = session.client(
        's3',
        use_ssl=False,
        endpoint_url='http://192.168.99.100:8080',
        aws_access_key_id='UEF4ZL22-B2YKBJ0QZBL',
        aws_secret_access_key='vImVW0uuw0e4NmWFV6UMrVX6b0dzDERx3FuTYA==')

    bucket = '52138c33-4043-4a85-a23c-9ec9d4fd48f1'

    response = s3client.list_objects(Bucket=bucket, Delimiter='/',
            Prefix='secrets/keys/keys/')
    dirs = list()
    dirs = [d.get('Prefix', None).split('/')[1] for d in response.get('CommonPrefixes', [])]
    files = [f.get('Key', None).split('/')[1] for f in response.get('Contents', [])]
    print('Directories ->', dirs)
    print('Files ->', files)




if __name__ == '__main__':
    main()
