Open etep opened 3 months ago
What makes you think it isn't implemented? head_object
is a method defined in the S3 service description, and works just fine:
session = aioboto3.Session()
async with session.client("s3") as client:
await client.head_object(Bucket="bucket-name", Key="object-key")
Description
Using
boto3
, one can check if an object exists in a bucket using methodhead_object
, see, e.g.: https://stackoverflow.com/questions/33842944/check-if-a-key-exists-in-a-bucket-in-s3-using-boto3The
head_object
method does not appear to be implemented in aioboto3.