Ftp get multiple files

Hi All,

I am writing a flow service,which pulls the files from server “A” and places them on server “B” using FTP.

  1. log on to host server
  2. Change to the specified directory
    This dir contains pairs of *.xml and *.tiff files …
    Need to ftp all the pairs to the destination.
  3. List all the xml files. Take the first xml file and find its corresponding tiff file filename by trimming the xml filename.
  4. Ftp the tiff file to the destination. Delete the file from the source.
  5. Now ftp the xml file to the destination. Delete the file from the source.
  6. Repeat steps 3 to 5 untill all the files in the dir are ftped to the destination.

Note: First the tiff file has to be ftped and only then the corresponding xml file has to be ftped.

Can anyone help me in doing this…

Thanks in Advance,
Reddyparne

Sounds like you have a reasonable algorithm planned out. What specifically do you need to know?