Method FTPClient2():getLastError() Foundation

Gets the error code of the last operation.

Syntax
:getLastError() --> nError
Return

A numeric error code, with 0 indicating success. For a complete list of possible error codes and their descriptions, refer to https://curl.se/libcurl/c/libcurl-errors.html.

Description

Retrieves the numeric error code of the last FTP operation. A value of 0 indicates that the last operation completed successfully.

This method should be called after each operation to determine the success or failure status. For a detailed error message, use the method :getLastMessage().

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.