mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 00:43:49 +01:00
9ee3ad70e9
Some sftp servers don't allow the user to access the file after upload. In this case the error message indicates that using --sftp-set-modtime=false would fix the problem. However it doesn't because SetModTime does a stat call which can't be disabled. Update SetModTime failed: SetModTime stat failed: object not found After upload this patch checks for an `object not found` error if set_modtime == false and ignores it, returning the expected size of the object instead. It also makes SetModTime do nothing if set_modtime = false https://forum.rclone.org/t/sftp-update-setmodtime-failed/22873 |
||
---|---|---|
.. | ||
sftp_internal_test.go | ||
sftp_test.go | ||
sftp_unsupported.go | ||
sftp.go | ||
stringlock_test.go | ||
stringlock.go |