Get text file from FTP server to Local Machine, if we get files then rename this file by yyyyMMdd name of the file OK.text
We need to delete those text file from local folder which are 1 month OLD.
Exception in component tFileCopy_1
java.lang.RuntimeException: The source File "/home/FTP_Server/LOGS_Folder/LOG.txt" does not exist or is not a file. My requirement is to Get file from FTP server to Local Machine and is it is successful then RENAME this file,
so is tfilecopy component Copy files from FTP server to Local machine?
Please advice me because i am running out of time for deployment.
Now i just remain with DELETE those files from Log folder which are 1 month OLD.
If the source file name has yyyyMMdd+name(such as: 20130725xxOK.txt), you can use a specified file mask in tFileList to get the 1 month OLD source file and then delete them by tFileDelete.
I am unable to attach snapshots ? not getting reason of attachment failure???
java.util.Calendar calendar = java.util.Calendar.getInstance(java.util.TimeZone.getDefault(),java.util.Locale.ENGLISH);
java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat("yyyyMM"); //$NON-NLS-1$
Can you please tell me what is this code: ((String)globalMap.get("key")) ?? i dint got by "ctrl+ Space"
So if i run the job it should delete only 2 files like
because ( Systemdate - 1 month ) = 20130728 ,
but presently when i Run our job it DELETE following files:
5) 20130731_log.txt WHICH IS WRONG...