on 05-08-2009 12:22 PM
Hi there
I have to archive some files, I have a file that gets droped of in a folder and then some other files gets created in the same folder. With the FTP the sender file gets deleted and the receiver files gets overwritten. I have to create each set of receiving files in a new folder and the folder name must be the date & time. And for the sending file it should have the same logic.
Is there some way of doing this?
Thanks,
Jan
Hi,
For this I would suggest to use dynamic configuration params to change the target directory name. In this UDF, you can add a timestamp to the target directory name.
[/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14|/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14]
gives the code to manipulate filename. Same can be done for diectory
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Varun,
>>For this I would suggest to use dynamic configuration params to change the target directory name. In this UDF, you can add a timestamp to the target directory name.
how can this be used for sender file adapter ?
unless you're only talking about one part of this issue
Regards,
Michal Krawczyk
hi,
not in standard - only by an adapter module
but not very difficult to do in this adapter module in java
(simple file handling)
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.