This content has been marked as final. Show 4 replies
So u r reading from an ftp adapter, right?
Is this using BPEL, OSB, Mediator?
Once u read it, u r writing it locally? That's what u r doing?
If that is the case, do u need to write the local file with the same name?
Yes, I am using FTP adapter with BPEL. I am reading the files that are located in different server and writing it to local server, Yes the files names should be same.
How about adding some logic using BPEL.
Before writing a file with the same name as earlier.
check the existences of a file with a name in the local server, delete it if it exists.
Yes. As Wajid mentioned, maybe before writing, use the File ADapter but to list the directory. Then look if the file already exists, and if that is the case, delete it and then write it.
Hope this helps.