Add some mechanism file transfer progress + events for finish of file download / upload
- It will be nice to have some easy way to get file transfer progress
- There should be a separate event (or events) fired when file transfer is finished
5
votes

To check the transfer progress, in SecureBridge there are the TScSFTPClient.OnData and TScSFTPClient.AfterWriteData events, which are raised on downloading a file from SFTP server and on uploading a file to the server correspondingly.
To determine the data transfer completion, the EOF parameter, which indicates that the end of file was reached, should be processed. If its value is True, the end of file was reached. Otherwise it was not reached.