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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Copy the list of file to other folder

Hi, 

I want to copy list of file in folder 1 to folder 2. In this folder 2, I store only the files that have the newest date.

For ex: i have the list of file in the folder 1 (6 files)

         A1_scope_20180818.csv

        A1_scope_20180820.csv

        A2_scope_20180818.csv

        A3_scope_20180819.csv

        A4_scope_20180821.csv

        A4_scope_20180818.csv

After the traitement, i want to obtain the list of file in the folder 2 (4 files)

 A1_scope_20180820.csv, A2_scope_20180818.csv,  A3_scope_20180819.csv,  A4_scope_20180821.csv.


Here is the process of recover the filename and date of each file
tFileList -> tFixedFlowInput -> tIterateToFlow -> tMap -> tMemorizeRow -> TJavaFlex

 

I used component "tJavaFlex" to store filename and date in HashMap<String,Date>. In this HashMap, it contains only the filename and date of file corresponding ().

0683p000009LzfG.png

 

Now i want to copy the list of file which contain the namefile in HashMap to new folder (folder 2)

Have you an idea for this.

Thanks 

Br

Giang

 

 

 

Labels (5)
10 Replies
Anonymous
Not applicable
Author

it works.

Thank for your help.

Regards

ledoan