creating folder in s3 bucket python

29

import boto3

client = boto3.client('s3')

response = client.put_object(
        Bucket='my-top-level-bucket',
        Body='',
        Key='test-folder/'
        )

Comments

Submit
0 Comments