Stop Download (wodSFTP / wodSFTP.NET / wodSFTPdll)
Hi
1. If Im downloading a file using blocking and want to cancel the download, what method would I use for this, have checked the Help file but can find anything ?
Sorry if Im being thick.
2. If Im getting a files list say using listfiles or listdir, both methods at a certain point, the same directory and the connection hangs and then eventually times out, have checked this with a couple of ftp programs and it might take a bit of time but they do show the listing.
Any Ideas ?
Thanks
Darren
Re: Stop Download
Darren,
you can call Abort method to stop file transfer.
http://www.weonlydo.com/FtpDLX/Help/wodFtpDLXLib~wodFtpDLX~Abort.html
But I'm not sure how will you call in in Blocking mode, since PutFile/GetFile doesnt' return control to you until it finishes.
As for timeout - try to increate Timeout property value, or set it to 0. Can you try that?
Re: Stop Download
thanks for that, might try it another way, rediecting the output from and list command to a file on the server ?
Possible
Thanks
Darren,
you can call Abort method to stop file transfer.
http://www.weonlydo.com/FtpDLX/Help/wodFtpDLXLib~wodFtpDLX~Abort.html
But I'm not sure how will you call in in Blocking mode, since PutFile/GetFile doesnt' return control to you until it finishes.
As for timeout - try to increate Timeout property value, or set it to 0. Can you try that?
Re: Stop Download
Hmm, how will you do it? You cannot do it with wodFtpDLX.