cancel
Showing results for 
Search instead for 
Did you mean: 

Archiving With FTP Receiver

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member192892
Active Contributor
0 Kudos

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

MichalKrawczyk
Active Contributor
0 Kudos

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

former_member192892
Active Contributor
0 Kudos

I thought he doesn't need any changes on sender side...

Sorry if i'm wrong

Like you said, I just thought of one side

Regards

Varun

MichalKrawczyk
Active Contributor
0 Kudos

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