rclone/backend/sftp
Nick Craig-Wood 870c58f7f8 sftp: fail soft with a debug on hash failure #1474
If md5sum/sha1sum fails we debug what it outputed on stderr and return
an empty hash indicating we didn't have a hash, rather than
hash.ErrUnsupported indicating that we don't support this hash type.

This fixes lots of ERROR messages for sftp and synology NAS which,
while it supports md5sum the SFTP paths and the SSH paths are
different so md5sum doesn't work.

We also stop disabling md5sum/sha1sum on errors since typically Hashes
is only checked at the start of a sync run and isn't expected to
change dynamically.
2018-04-21 09:02:53 +01:00
..
sftp.go sftp: fail soft with a debug on hash failure #1474 2018-04-21 09:02:53 +01:00
sftp_internal_test.go sftp: require go1.8+ after github.com/pkg/sftp update 2018-03-19 16:37:40 +00:00
sftp_test.go Make integration tests use go1.7+ nested tests #2154 2018-04-08 15:04:14 +01:00
sftp_unsupported.go sftp: require go1.8+ after github.com/pkg/sftp update 2018-03-19 16:37:40 +00:00
stringlock.go sftp: require go1.8+ after github.com/pkg/sftp update 2018-03-19 16:37:40 +00:00
stringlock_test.go sftp: require go1.8+ after github.com/pkg/sftp update 2018-03-19 16:37:40 +00:00