[ 
https://issues.apache.org/jira/browse/SSHD-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14331988#comment-14331988
 ] 

David Evans commented on SSHD-108:
----------------------------------

For my uses, all I need to know is when the file is successfully uploaded. 
Knowing why an upload failed would be a bonus for logging purposes, but isn't 
required. As in the pull request I made, I think the stream itself is the most 
convenient place to get this data, but the file object would also work (this is 
the approach the OP attempted).

I'll check through your changes and see if any of it might limit what I'm 
trying to do. At-a-glance it seems like it should help simplify things quite a 
bit, but with such a big change I'd like to be sure no functionality I need 
gets lost! (I'm building a separate filesystem for each user on-the-fly, so 
it's not quite a typical use-case)

> Add upload monitoring to sftp and scp
> -------------------------------------
>
>                 Key: SSHD-108
>                 URL: https://issues.apache.org/jira/browse/SSHD-108
>             Project: MINA SSHD
>          Issue Type: Improvement
>    Affects Versions: 0.5.0
>            Reporter: Richard Evans
>            Priority: Minor
>
> We have sshd integrated into our application and sftp is working fine.  One 
> of the requirements is to initiate some action when a file upload it 
> complete.  I have made this work by implementing handleClose in my SshFile 
> implementation and performing the action if createOutputStream had been 
> called previously.  This seems a bit ugly though; it might be nicer if there 
> was some plug in mechanism to monitor file transfers.
> Ideally the monitor would be able to distinguish between a successful upload 
> and a cancelled one (via ctrl-c at the client), but a quick perusal of the 
> sftp stuff seems to inidicate that this is not possible. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to