We are doing automation for downloading the files from on customer FTP to our local server. Customer is copying their files to FTP in .zip format. We have one engine to download the files automatically. This engine will watch the FTP frequently some time interval gap and what ever the .zip files available in the FTP it will be downloading. But the problem occurs when download the .zip file is it corrupted because successful copy is not completed in the customer end before that engine take the file in FTP.
How to solve this problem. Due to this problem we are not able to automate the process.
It would be great help if any reply for this question.
Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by makesh (had 1163 views)
I’m not sure this is the answer you’re looking for, but speaking of own experience we usually have two folders:
1. /infolder/temp 2. /infolder
And when customers upload files to our server they upload them to the /infolder/temp and once the upload has been completed they “move” the file (rename command) to the /infolder, that way we are always assured that the files that are located in the /infolder are completly uploaded by the customer since they perform the move once the file has been uploaded in its entirety. 🙂
This is more or less a de facto standard within the logistics industry when it comes to data transfers.
Good Luck! Johannes
Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Johannes (had 235 views)
No. You understand is wrong. There is only one folder in FTP and FTP is maintained by Customer. Our work is to download the files from customer folder. Customer will not move the file to other folder after successful copy. They only copy the files to single folder.
Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by makesh (had 1499 views)