Nevermind, I figured it out. I just had to take the file handles and compare the inputPos and outputPos to the file size.
-----Original Message----- From: Wright, Omari [mailto:omari.wri...@solers.com] Sent: Tuesday, April 10, 2012 8:37 AM To: 'users@mina.apache.org' Subject: RE: How to implement FtpServer Ftplet like actions in Apache SSHD It turns out that the close operation is called at the end of file writes and file reads. Is there any way to distinguish between the two in the SFTP subsystem at the end of the operations?