Emitting all events #75
Replies: 8 comments 1 reply
-
Current it only emits events on Feel free to make a pull request with more commands added! |
Beta Was this translation helpful? Give feedback.
-
will do! |
Beta Was this translation helpful? Give feedback.
-
Could we create will and did events for each command? "will" would be emitted before the command runs (maybe with a way to cancel the command and return an error) and "did" after it has run. This can be useful for more specific actions on each command. |
Beta Was this translation helpful? Give feedback.
-
I like the idea of that. A fleshed out event system would be a good improvement. |
Beta Was this translation helpful? Give feedback.
-
Any other ideas that would lead to a fleshed out event system? Another suggestion: I could make use of a |
Beta Was this translation helpful? Give feedback.
-
Could add workaround for #114 if we add event listener for unrecognized commands. |
Beta Was this translation helpful? Give feedback.
-
Maybe a hook in The listeners after a command has been run should be called from every command handler, since only there do we know the result of the operation (i.e. status code, effect on the connection), which would be nice to be passed to the event listener. I don't know whether a |
Beta Was this translation helpful? Give feedback.
-
In my humble opinion it would be great to have an event handling on ExecBeforeCommand as long as on ExectAfterCommand (as ProFTPd does, as example). With a simple example:
The external handler is receiving all the connection parameters (client IP, connected username, requested file path, ...) and decide weather to create the file or get an error. Ref: http://www.proftpd.org/docs/contrib/mod_exec.html#ExecBeforeCommand |
Beta Was this translation helpful? Give feedback.
-
Hi, I have been trying to listen to events other than STOR and RETR and noticed that the emit command doesn't get run under any other directive. Is this purposeful or have the features just not been implemented yet?
Beta Was this translation helpful? Give feedback.
All reactions