Skip to content

SSH.SFTPTransferQueue.Progress

Andrew Lambert edited this page Nov 26, 2022 · 5 revisions

Event signature

 Event Function Progress(NetworkStream As SSH.SFTPStream, FileStream As BinaryStream) As Boolean

Parameters

Name Type Comment
NetworkStream SFTPStream The network side of the transfer.
FileStream BinaryStream The local side of the transfer.

Return value

Return True to abort the specified transfer.

Remarks

This event is raised when data is sent or received on a transfer. You can use the IsDownload and IsUpload methods to determine what kind of transfer the NetworkStream represents.

The Position and Length properties of the streams can be used to calculate the progress.

Clone this wiki locally