Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

vfs: ignore file not found errors from Hash in Read.Release

Nick Craig-Wood1a8c5708c56d
diff --git a/vfs/read.go b/vfs/read.go
index 6324593dc..a89b1099b 100644
--- a/vfs/read.go
+++ b/vfs/read.go
@@ -344,6 +344,11 @@ func (fh *ReadFileHandle) checkHash() error {
for hashType, dstSum := range fh.hash.Sums() {
srcSum, err := o.Hash(context.TODO(), hashType)
if err != nil {
+ if os.IsNotExist(errors.Cause(err)) {
+ // if it was file not found then at
+ // this point we don't care any more
+ continue
+ }
return err
}
if !hash.Equals(dstSum, srcSum) {