in reply to Verify FTP Success, prior to deleting files

How can I ensure the files are successfully ftp'ed to the $webserver prior to deleting the files?

One of the ways could be by listing the directory on the $webserver, locating the entries for the files that were just uploaded and comparing the sizes. Of course, there is always a chance of corruption that doesn't change the size...

Also, you can parse the log of your FTP session and make sure that server responses were positivie all the time. :)

  • Comment on Re: Verify FTP Success, prior to deleting files