Home Forums .NET libraries Xceed SFTP/FTP for .NET How to identify file is successfully copied before start downloading through Xceed FTP component

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #21338 |

    My Question is given below:

    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)

    User (Old forums)
    Member
    Post count: 23064

    Hi makesh,

     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)

    User (Old forums)
    Member
    Post count: 23064

    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)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.