Six Stars

List of files from S3 location

I used to get the list of objects from my S3 bucket using S3Service.listObjects (jets3 classes) in talend. Now I have the files inside a folder in that bucket. Now when I use Bucket/folder path in the S3Service.lostObjects function, it gives the error "Failed to parse XML document with handler class org.jets3t.service.impl.rest.XmlResponsesSaxParser$ListBucketHandler".
How to get the list of objects from a folder inside the main bucket in S3??
Please Help.
3 REPLIES
Six Stars

Re: List of files from S3 location

I aslo tried using a prefix with listObjects i.e listObjects("Bucketname", "/foldername/") but then the error message "The method listObjects(string,string) is not defined for the type S3Service". How to use this?
Moderator

Re: List of files from S3 location

Hi,
Please take a look at tS3List.
The related topic .
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Six Stars

Re: List of files from S3 location

Just one more thing, will it still work if I don't have access to the main bucket?
I have access to the folder inside the main bucket but not main bucket itself. Will ts3List still work?