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: 
_AnonymousUser
Specialist III
Specialist III

Component folder

Good morning.

Is there any component that counts the number of files that are in a folder?

I need to be stored in a variable, the number of records that exist in a folder and not how.

Thank you very much.

Labels (2)
2 Replies
Anonymous
Not applicable

Hi,

Please take a look at a component TalendHelpCenter:tFileList which iterates on files or folders of a set directory.
You can use the global variable 0683p000009MPcz.png(Integer)globalMap.get("tFileList_2_NB_FILE")). It counts the number of files found.

Best regards
Sabrina
_AnonymousUser
Specialist III
Specialist III
Author

xdshi wrote:

Good Morning,

First, thank you very much for your reply.

I stored in a global variable in a tJava this: context.numeroImagenes = ((Integer) globalMap.get ("tFileList_1_NB_FILE"));

The problem is that stored me: (1,2,3,4) and I just need the last value.

You can store only the last value?

thank you!
Good Morning,

First, thank you very much for your reply.

I stored in a global variable in a tJava this: context.numeroImagenes = ((Integer) globalMap.get ("tFileList_1_NB_FILE"));

The problem is that stored me: (1,2,3,4) and I just need the last value.

You can store only the last value?

thank you!
Hi,

Please take a look at a component TalendHelpCenter:tFileList which iterates on files or folders of a set directory.
You can use the global variable 0683p000009MPcz.png(Integer)globalMap.get("tFileList_2_NB_FILE")). It counts the number of files found.

Best regards
Sabrina