Stop Download - WeOnlyDo Discussion board

Stop Download (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Darren, Thursday, June 23, 2005, 17:21 (6886 days ago)

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

by wodSupport, Thursday, June 23, 2005, 17:26 (6886 days ago) @ Darren

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

by Darren, Thursday, June 23, 2005, 18:24 (6886 days ago) @ wodSupport

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

by wodSupport, Thursday, June 23, 2005, 19:51 (6886 days ago) @ Darren

Hmm, how will you do it? You cannot do it with wodFtpDLX.