View Single Post
Old 04-01-2004, 07:23 PM  
Senior Member
Join Date: Sep 2002
Posts: 543
Thumbs up Common [pre] and [post] event extension suggestion

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
STOR != EXEC ..\etc... ?? probably not i guess...
FTPServerTools is offline   Reply With Quote