I know there is a doesObjectExist
method to check if an object exists in a specified bucket, but how do I check if an object with a specific version exists in an S3 bucket?
I want to call doesObjectExist(bucketName, objectName, s3Version)
.
Is there any way I can do this, or do I need to call listVersions
first and check if the version exists using the VersionListing
? This approach seems a lot more verbose.