We are seeing instances where it looks like the ftp script is downloading partial files from the ftp. It kicks the script off every 3 minutes
It is getting a result of ok and deleting the file.
Have you seen this before or is there anything I can do to make sure it doesn''t download partial files?
It is getting a result of ok and deleting the file.
Have you seen this before or is there anything I can do to make sure it doesn''t download partial files?
FTP Script
- # For each file in $list...
- # Download the file
- #Get the filesize of folder
- # If the file has been succesfully downloaded
- # delete the remote copy. If not stop the script.
- EXEC('xcopy "\\producer\Hires Graphics\AutoFTPDownload\ROP_Color\"'.$item.' "\\producer\Hires Graphics\CTP Broad Color\" /Y')
It kicks the script off every 3 minutesIt may happen that the file located in the FTP site (uploaded by other FTP client or copied there by other process) is not complete. If you run the script so often this will happen sooner or later.
Consider using lock files. Take a look at this forum topic:
http://www.scriptftp.com/forum/viewtopic.php?f=6&t=566
liked Script FTP? Try our other product Email Parser