How to check if s3 bucket has files in it

Hello,

I have a S3 bucket and 2 subfolders in it. I want to check under one specific folder if there are any files present in it.

If yes, an email should be sent the business users notifying that files are present in the folder in S3 bucket

How to achieve this?

Hi @aishwarya.srinivasan

Please check the following video this can help you solve the query-

Basically, you can use the for each object in a bucket to iterate over files & check using file exits or if condition to validate.

Hope this helps :slight_smile:

1 Like