Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
286 B
1
Indexable
Never
import boto3

bucketName = 'claim-tarrif-digitization'
s3 = boto3.resource('s3')
for i in os.listdir("/usr/src/app/code/data/wide"):
      awsPath = os.path.join("wide", str(i))
      s3.meta.client.upload_file(os.path.join("/usr/src/app/code/data/wide",i), bucketName, awsPath)