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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
EmmanuelTrejo
Contributor II
Contributor II

Read specific files from a folder

Hi everyone,

I need your help to know how I can read some folders from a directory with tFileList.

As you can see I've 4 folders but I just want to read the first two, those files are into directory tFileList reads.

0695b00000Sq3ibAAB.png

0695b00000Sq3iWAAR.png

Regards.

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi

Use another tFileList to list the folders. eg:

tFileList1--iterate--tFileList2--iterate-->tFileInputDelimited

 

on tFileList1: select 'Directory' as filelist type.

 

0695b00000Sq4WCAAZ.pngon tFileList2: select 'File' as filelist type, and set the Directory field as:

((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))

 

Regards

Shong

 

View solution in original post

1 Reply
Anonymous
Not applicable

Hi

Use another tFileList to list the folders. eg:

tFileList1--iterate--tFileList2--iterate-->tFileInputDelimited

 

on tFileList1: select 'Directory' as filelist type.

 

0695b00000Sq4WCAAZ.pngon tFileList2: select 'File' as filelist type, and set the Directory field as:

((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))

 

Regards

Shong