"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
sftp: clear the cached hashes on object update
Nick Craig-Woodc6b844977ae5
diff --git a/sftp/sftp.go b/sftp/sftp.goindex 6e0fd8865..837d4cd89 100644--- a/sftp/sftp.go+++ b/sftp/sftp.go@@ -817,6 +817,9 @@ func (o *Object) Open(options ...fs.OpenOption) (in io.ReadCloser, err error) {// Update a remote sftp file using the data <in> and ModTime from <src>func (o *Object) Update(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) error {+ // Clear the hash cache since we are about to update the object+ o.md5sum = nil+ o.sha1sum = nilc, err := o.fs.getSftpConnection()if err != nil {return errors.Wrap(err, "Update")