Utils Module¶
General utilities.
-
s3_tools.utils.
object_exists
(bucket: str, key: str) → bool[source]¶ Check if an object exists for a given bucket and key.
- Parameters
bucket (str) – Bucket name where the object is stored.
key (str) – Full key for the object.
- Returns
True if the object exists, otherwise False.
- Return type
bool
Example
>>> object_exists("myBucket", "myFiles/music.mp3") True