How to check if a file exists in s3 bucket

Highlighted
Four Stars Ath
Four Stars

How to check if a file exists in s3 bucket

Hi All,

 

My current scenario is getting the file name from SQS, and fetch that file from one s3 bucket location and load into another s3 bucket location. I am able to do this without issues. But when the file is not present in the source S3 location, the job (ts3Get) fails with error file not found. I would like to add a check for file existence and use if condition to tackle this scenario. However i couldn't figure how to check for the existence of file. Is there a component similar to tFileExist for s3 which can perform this. 

 

Appreciate all the responses.

 

Thank you

Tags (3)
Eleven Stars

Re: How to check if a file exists in s3 bucket

Try tS3List with exact key name of tS3get key name

Regards
Abhishek KUMAR

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Have you checked out Talend’s 2019 Summer release yet?

Find out about Talend's 2019 Summer release

Blog

Talend Summer 2019 – What’s New?

Talend continues to revolutionize how businesses leverage speed and manage scale

Watch Now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog