MCPcopy Create free account
hub / github.com/aws/aws-cli / _object_size

Method _object_size

awscli/s3transfer/__init__.py:877–880  ·  view source on GitHub ↗
(self, bucket, key, extra_args)

Source from the content-addressed store, hash-verified

875 f.write(chunk)
876
877 def _object_size(self, bucket, key, extra_args):
878 return self._client.head_object(Bucket=bucket, Key=key, **extra_args)[
879 'ContentLength'
880 ]
881
882 def _multipart_upload(self, filename, bucket, key, callback, extra_args):
883 uploader = MultipartUploader(self._client, self._config, self._osutil)

Callers 1

download_fileMethod · 0.95

Calls 1

head_objectMethod · 0.45

Tested by

no test coverage detected