[
https://issues.apache.org/jira/browse/SSHD-814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16445232#comment-16445232
]
Zhenliang Su commented on SSHD-814:
-----------------------------------
1. When upload a file complete, there should has a callback function like
uploadComplete(ServerSession session, Path path, Throwable thrown).
2. When download a file complete, there should has a callback function like
downloadComplete(ServerSession session, Path path, Throwable thrown).
3. When do a delete or rename or other action to a non-exist file or directory,
there should has a callback function indicating which action failed.
> enrich the SftpEventListener
> ----------------------------
>
> Key: SSHD-814
> URL: https://issues.apache.org/jira/browse/SSHD-814
> Project: MINA SSHD
> Issue Type: Improvement
> Affects Versions: 1.7.0
> Reporter: Zhenliang Su
> Assignee: Goldstein Lyor
> Priority: Minor
> Labels: EventListener, sftp
>
> In practice, I found that, the callback function provided by
> SftpEventListener is not enough. For example, the following situation is not
> easy to be notified in a elegant way:
> {code:java}
> download files that you do not have access to
> download a file that no longer exists
> upload files to a directory without permissions
> create a new file in a directory that you do not have access to
> download or upload a file complete
> upload a zero size file
> ...{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)