I am writing a very simple application that is going to download multiple files using SFTP, one at time.
For example, using the code below:
Dim client As New Sftp
client.GetFile("/var/log/messages", save_location & "\messages")
WHat I want to do is to get the percentage that has been downloaded an update a label on a windows form, so I can see when it is complete and how far it has progressed.
I have looked at the examples that come with the SFTP module purchase but found them complicated. Could someone show me here some simple sample code that could do this please?
Many thanks in advance,
UPDATE: I have managed to resolve this myself :) But I do have one related question.
When I get a file using the Get Method, I sometimes get a 0 bytes downloaded file because the account I have connected with doesn't have writes to the file on the remote server to download. How can I check if the account I have connected with has permissions to the file?