PDA

View Full Version : Common [pre] and [post] event extension suggestion


FTPServerTools
04-01-2004, 07:23 PM
Ok I know there are the [pre] and [post] events but I think it might be handier for coding purposes to have a common [pre] and [post] event that can handle any client command given.
This would make code like below quite handy. Instead of having to call a different program for all other possible events.

if ((command=="RETR") || (command=="STOR") || (command=="APPE")){ do(something)}
else { do(somethingelse) }

Or is it possible to have a
[pre]
STOR != EXEC ..\etc... ?? probably not i guess...