head_bucket#

Improve the head_bucket API.

s3pathlib.better_client.head_bucket.is_bucket_exists(s3_client: S3Client, bucket: str) bool[source]#

Check if a bucket exists.

Example:

>>> is_bucket_exists(s3_client, "my-bucket")
True
Parameters:
Returns:

A Boolean flag to indicate whether the bucket exists.