Is there an async-friendly way to find if a file exists on S3 in C#

Viewed 418

All the answers I've found so far indicate using something basically like:

AmazonS3Client client = new AmazonS3Client(accessKey, secretKey, regionEndpoint);       
S3FileInfo s3FileInfo = new S3FileInfo(client, bucketName, fileName);
return s3FileInfo.Exists;

(From another answer)

However, this looks like it will be completely synchronous. As I'm converting more of our code to async-await, I've found most of the S3 calls have Async versions, but I haven't found an Async version of this call.

Any pointers would be appreciated.

0 Answers
Related