in ezsmdeploy/__init__.py [0:0]
def get_size(self, bucket, path):
s3 = boto3.resource("s3")
my_bucket = s3.Bucket(bucket)
total_size = 0.0
for obj in my_bucket.objects.filter(Prefix=path):
total_size = total_size + obj.size
return total_size / ((1024.0) ** 3)