Check for FTP completion

Hello,

I am sure a lot of you have come across this situation, and I want to know how you have or would handle this situation:

  • A file gets ftp'ed (import) regularly to a directory into our environment. Is there a way to check whether this file has completed ftp'ing.
  • I don't want my job to process it while it is in the middle of a ftp process.

Thanks,

CB

Transfer it under a different name, then use the ftp rename command to move it over once it's finished.