GetLastCommand()

// in class: Session
function GetLastCommand(): string;

This function returns the last command (in full) that was issued by the client and correctly received and handled by the server.

Example

{
  // Let's say the last command the client sent and was successfully carried out
  // by the server was a list of the archive directory (LIST /archive)
  var lc = Session.GetLastCommand();
  Log(lc); // Will log `LIST /archive`
}