How To Get latest File from Based on Source Folder......
Get The Latest File From Folder ----->
Last File in this Folder---->EMP_2019-05-09 100338.csv
Job Desgin:-
Screen Shot Below:-

Tfilelist:- Give the directory Name and File Mask
tfileproprieties component :- Use filename as ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")) and store the values in Buffer
buffer after using tsortrow component and Mtime num desc after tsample row take 1 as sample after
t flow to iterate using default values and then after tfile copy using filename:((String)globalMap.get("row5.abs_path"))
Directory: Name destination directory...
and run it .......

Get The Latest File From Folder ----->
Last File in this Folder---->EMP_2019-05-09 100338.csv
Job Desgin:-
Screen Shot Below:-
Tfilelist:- Give the directory Name and File Mask
tfileproprieties component :- Use filename as ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")) and store the values in Buffer
buffer after using tsortrow component and Mtime num desc after tsample row take 1 as sample after
t flow to iterate using default values and then after tfile copy using filename:((String)globalMap.get("row5.abs_path"))
Directory: Name destination directory...
and run it .......
No comments:
Post a Comment