The SFTP subsystem is implemented in the following class https://github.com/apache/mina-sshd/blob/master/sshd-sftp/src/main/java/org/apache/sshd/sftp/subsystem/SftpSubsystem.java
However, there's really no callback supported at the moment, so the only way would be to implement a custom FileSystemView and act when the SshFile#handleClose() is called after one or more SshFile#createOutputStream() calls. A better alternative would be to actually modify the SftpSubsystem to support such a thing. This is what has been captured in https://issues.apache.org/jira/browse/SSHD-108. 2014-11-10 19:04 GMT+01:00 Swaroop Rath <[email protected]>: > Hi Guys > > I am using the Apache Mina SSHD project. I was able to start up and use a > SFTP server. I want a method to be invoked every time a file transfer > (copy) action is complete. > > I glanced through the docs and have not been able to find an answer. Any > pointers in this direction would be really helpful. Am looking for the > interfaces that I need to implement and the class/method where I need to > register my call back function. > > Thanks in advance. > Swaroop > Software Dev, Palantir >
