Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.12.0
-
None
Description
Currently, DefaultSftpClient checks the response code of the SSH server and if it's not 0 (SSH_FX_OK), throws a SFTP error containing the response code as a String. This requires String parsing to determine if the error was due to file existing, lack of permissions, lost connection, etc. It would be better if it was passed in as the disconnect code or if there were some other way for the consumer to determine the cause of the error.