Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a scenario in which a file using ftp is being downloaded or uploaded. But during the process, i want to manually stop copying process.

Whenever I manually stop process (by stopping the ftp service from IIS), it stops the process and also rolls back the file (means deletes the partially copied file).

Questions are:

1) How to stop copying process in a way such that partially copied file will not remove?

2) How to continue (resume) the copying process from the remaining part?

Any help will be appreciated and thanks in advance.
Posted
Updated 16-Jun-11 3:54am
v3

1 solution

Hi,
in order to implement the resume functionality in a client which uses the FTP protocol, you should take a look on REST command which is specifically designed for this task. Here[^] you can find the RFC with the appropriate description.
Regards
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 16-Jun-11 15:00pm    
My 5.
--SA
[no name] 17-Jun-11 1:43am    
Thanks for your early response, now i am using a library based on REST. But still not found the way. Because the library which i am using is based on Socket. Whenever i open the socket it throws an exception. Is there another way?

Thanks in advance.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900