cancel
Showing results for 
Search instead for 
Did you mean: 

Urzent: Delete files in FTP server using FTP receiver adapter

former_member189441
Active Participant
0 Kudos

Hi Experts,

We are doing 2 asyncronous scenarios. frst scenario should delete existing file and place the request file. Second scenario should pick(delete) response file and delete request file it placed also.

Scenario 1 : File(NFS) to FTP  (Asynchronous)
Scenario 2: FTP to NFS  (Asynchronous)
Scenario 1: (Receiver FTP Adapter )
step-1: PI has to delete all existing files in FTP server
step-2: PI has to place Request file in FTP
Scenario-2: ( Sender FTP Adapter)
step-1: PI has to Delete request file i FTP server
Step-2: PI has to pick and delete response file in FTP server


Doubts:

How can we do above steps in PI

Thanks,

Murali

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184720
Active Contributor
0 Kudos

Hi Krish - For scenario -1 You have to make use of the OS commands to delete the files on FTP server before placing the request file.

          -> write some script which wil connect to the FTP server and delete the files.

          -> call that script from the file adapter "using execute OS commands" option

For scenario -2 :

pick both the files(request and response) and set the processing mode to delete..

during the receiver determination, process only request files(based on filename/content)