Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Prakhar1
Creator III
Creator III

S3 Folder list

Hi I have a bucket in S3 like "abc-bucket" it has different folders like "a" , "b", etc.

Each folder has different files but i just want the name of the folders.

my job should give me a list of folders inside the bucket

3 Replies
pakapi_
Creator
Creator

Hi,

 

have you tried tS3List ? It lists all objects in bucket but you can try to locate last slash(/) in ((String)globalMap.get("tS3List_1_CURRENT_KEY")) and make a substring from the begining to lastIndexOf /.

Prakhar1
Creator III
Creator III
Author

Hi, I have tried it already and also the solution you are explaining but the issue is it will first read all folders and all files then will give the desired output. But what i want is only folder names and in a quick time.

pakapi_
Creator
Creator

The problem is for s3 there are no files and folders, there are just objects. As my knowledge, there is no predefined metod, even in AWS cli, to list only folders.