Method SFTPClient():getLastError() Foundation
Gets the error code of the last operation.
:getLastError() --> nError
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.
Retrieves the numeric error code of the last SFTP 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().
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.