Command group | Flag affected | Reversible | Execute on client | Platform(s) |
---|---|---|---|---|
External commands | YES | NO | NO | All |
FTPGetLastStatus (socket[,protocoltext]) Returns status
Note: The flag is set according to whether Omnis was able to make a call to this external command.
This Web command is multi-threaded,allowing another thread to execute in the multi-threaded server while it runs. Note that the same socket cannot safely be used concurrently by more than one thread.
FTPGetLastStatus returns status information corresponding to the last FTP command executed on a connected FTP socket.
Socket is an Omnis Long Integer field containing a socket opened to an FTP server using FTPConnect.
ProtocolText is an optional Omnis Character field parameter, into which FTPGetLastStatus places the FTP protocol exchange that occurred on the control connection to the FTP server, for the last FTP command executed. For example, if you execute FTPPwd, and then call FTPGetLastStatus, ProtocolText might contain:
Note that "->" prefixes text sent to the server, and "<-" prefixes text received from the server.
Status is an Omnis Long Integer field which receives the return status of the last FTP command executed. This information is really redundant, but is provided for compatibility. The value returned is one of the negative error codes. Possible error codes are listed in the Web Command Error Codes Appendix.