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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Vijay_K_N
Contributor
Contributor

How to Iterate all folders in s3 list component

I have the necessary items(test_20230404.csv) in each subfolder. how to iterate through all subfolders in the S3 list component and extract the necessary items from them 

Example: s3://devbucket/data/travel/

in above path we have multiple sub folders

s3://devbucket/data/travel/processed

s3://devbucket/data/travel/archive

s3://devbucket/data/travel/oldfiles

on s3 list component I mentioned bucket name "

devbucket"

and key place "

data/travel/test_"

but I want to iterate through every subfolder in the travel folder.

Labels (3)
1 Reply
Anonymous
Not applicable

Hello @Vijay Kumar N​ ,

To achieve your goal, in tS3List component, please setup bucket name to "devbucket", and Key prefix to "data/travel" as the below, in tJava component, output the key name by

System.out.println(globalMap.get("tS3List_1_CURRENT_KEY"));

 

0695b00000fJQATAA4.png 

Thanks

Aiming