Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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 ().
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
In tMap, how can i recover list of file which have the newest date. I have juste recovered code and date in the file name with fuction substring. but i don't know check:
Can you explan the more detail.
Thanks
Regards
Giang
in tFilecopy, i want to call the column filepath in tAggregateRow. how can i call it?
Thanks
Regards
ledoan
Hello fdenis,
Yes i put ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")) into component tIterateToFlow and i called this field into component tFileCopy also.
But i don't understand why there is only one file who is copied in the new folder, on the other hand, the flux of this job is marked that there are 28 rows.
Do you know where is problem.
Thanks
Giang
i don't understand your answer. Can you explana more detaile.
Thanks
Regards
le doan