net-ssh / net-sftp

Pure Ruby implementation of an SFTP (protocols 1-6) client.
http://net-ssh.github.io/
MIT License
286 stars 130 forks source link

Error response on file upload, but uploads the file anyway #118

Open nataliehanisch opened 3 years ago

nataliehanisch commented 3 years ago

When I upload a text file containing special characters (e.g. èÿÅÄÃ), this I get an error response, yet the file is successfully uploaded to the server. The issue is that I want to automatically retry to upload if it fails, but I am unable to detect that it failed. If I manually access the server I can place a similar file with special characters with no problem. I do not need to upload files containing special characters, but I do need to know whether the upload actually failed or not.

The following is the error response: Net::SFTP::StatusException (4, "failure")