Thursday, 9 May 2019

How To Get latest File from Based on Source Folder......

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 .......

No comments:

Post a Comment

Scinario Based interview Question .....

 How  To Achieve The Scenario. Input File1.csv  id,Name 1,Mahendra File2.csv City, State Hyd,Telangana File3.csv Stateid Ts I want Out put F...