There isn't an example available showing how to get the upload status from the transfer listener in an sftp or scp transfer aside from looking at the log. I'm currently dispatching the upload and then trying to query the status in a timer every second but there is no documentation that shows how to do this or something similar.
Maybe change this to request for an example with this?
Hi, sorry there isn't an example for this. Basically you would have to implement this interface: http://schmizz.net/sshj/javadoc/0.7.0/net/schmizz/sshj/xfer/TransferListener.html
The default implementation is the logging one.
You can supply your impl to SCPFileTransfer or SFTPFileTransfer with a setter.
Note - the interface has changed and improved in 0.8.0-SNAPSHOT (to be released...)