GetLastCommand()
ts
GetLastCommand(): string;Returns the last command (in full) that was issued by the client and correctly received and handled by the server.
Example
ts
{
if (Session) {
// 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`
} else {
Log('Session object is not available.');
}
}