detecting a partial file download - WeOnlyDo Discussion board

detecting a partial file download (wodSFTP / wodSFTP.NET / wodSFTPdll)

by tsnelling, Tuesday, November 01, 2016, 17:11 (2945 days ago)

some of our remote sites have poor internet, and are dropping connection during a file download.

Is there a method of checking a file to determine that it was only partially downloaded?
And also, can I set it or flag it as a partial download?

The file attributes don't appear to be affected (same attributes as a fully downloaded file).

Thanks,
Tim Snelling

detecting a partial file download

by Jasmine, Tuesday, November 01, 2016, 17:14 (2945 days ago) @ tsnelling

Hi Tim.

Does Done event fire after the download? It should, and it should contain 'no error' value in its arguments. If you don't see it, or see an error, you can flag the file transfer as unsuccessful.

Jasmine.

detecting a partial file download

by tsnelling, Tuesday, November 01, 2016, 20:51 (2945 days ago) @ Jasmine

I can test this by disabling my wireless connection during a download.
After a couple minutes, the Done Event fires with Error Code 30027 (for my test).
I added code to delete the file, for this Error Code (30027).

Is there a list of Error Codes?

Thanks,
Tim Snelling

detecting a partial file download

by Jasmine, Tuesday, November 01, 2016, 20:59 (2945 days ago) @ tsnelling

Hi Tim.

Yes, you can find list in the helpfile, or online here:

http://www.weonlydo.com/SFTP/Help/wodSFTP-Error-list.html

Regards,
Jasmine.

detecting a partial file download

by tsnelling, Tuesday, November 01, 2016, 21:21 (2945 days ago) @ Jasmine

got it,
Thanks,

I looked in the pdf file, and didn't see it there.
then after i replied, asking for an Error list, I found it in the Help File.

Thanks Again,
Tim