Is there a way to tell when a file has finished uploading?
One thought that comes to mind is to upload a file containing the md5sums of the other files.
Your script would then read the check file and compare the md5sum of each file with the one recorded in the check file. Good files are copied, bad files are left until the next time.
Shawn