MCPcopy Create free account
hub / github.com/s3tools/s3cmd / get_acl

Method get_acl

S3/S3.py:1132–1142  ·  view source on GitHub ↗
(self, uri)

Source from the content-addressed store, hash-verified

1130 return response
1131
1132 def get_acl(self, uri):
1133 if uri.has_object():
1134 request = self.create_request("OBJECT_GET", uri=uri,
1135 uri_params={'acl': None})
1136 else:
1137 request = self.create_request("BUCKET_LIST", bucket=uri.bucket(),
1138 uri_params={'acl': None})
1139
1140 response = self.send_request(request)
1141 acl = ACL(response['data'])
1142 return acl
1143
1144 def set_acl(self, uri, acl):
1145 body = u"%s"% acl

Callers 2

object_copyMethod · 0.95
set_accesslog_aclMethod · 0.95

Calls 5

create_requestMethod · 0.95
send_requestMethod · 0.95
ACLClass · 0.90
has_objectMethod · 0.80
bucketMethod · 0.80

Tested by

no test coverage detected