Re: [FTPSERVER] Return values of Ftplet methods.

2008-10-31 Thread Niklas Gustavsson
On Thu, Oct 30, 2008 at 10:13 PM, David Latorre [EMAIL PROTECTED] wrote: To my mind, in most cases when we return SKIP we would also want to skip the afterCommand( e.g., I check if the data channel is secured in beforeCommand and if it is not, I write an appropiate response and return SKIP

Re: [FTPSERVER] Return values of Ftplet methods.

2008-10-31 Thread David Latorre
2008/10/31 Niklas Gustavsson [EMAIL PROTECTED] On Thu, Oct 30, 2008 at 10:13 PM, David Latorre [EMAIL PROTECTED] wrote: To my mind, in most cases when we return SKIP we would also want to skip the afterCommand( e.g., I check if the data channel is secured in beforeCommand and if it is

[FTPSERVER] Return values of Ftplet methods.

2008-10-30 Thread David Latorre
Currently (I don't have the code here so correct me if I am wrong) when a Ftplet method invoked via beforeCommand() returns FtpletResult.SKIP the command itself is not called but afterCommand still gets called. By reading the docs i cannot conclude if this the expected behaviour for I cannot