"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
local: report error on stat in Hash in case file disappeared
Nick Craig-Woodd0678bc3e548
diff --git a/local/local.go b/local/local.goindex 127a2579f..6753a0e0b 100644--- a/local/local.go+++ b/local/local.go@@ -444,7 +444,12 @@ func (o *Object) Hash(r fs.HashType) (string, error) {// Check that the underlying file hasn't changedoldtime := o.info.ModTime()oldsize := o.info.Size()- _ = o.lstat()+ err := o.lstat()+ if err != nil {+ fs.Stats.Error()+ fs.ErrorLog(o, "Failed to stat: %s", err)+ return "", err+ }if !o.info.ModTime().Equal(oldtime) || oldsize != o.info.Size() {o.hashes = nil