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

http: fix race introduced in 7982aaf1516f

Nick Craig-Wood1a16849df0eb
diff --git a/backend/http/http.go b/backend/http/http.go
index 9c838e2da..ba90b4bf0 100644
--- a/backend/http/http.go
+++ b/backend/http/http.go
@@ -456,7 +456,7 @@ func (f *Fs) List(ctx context.Context, dir string) (entries fs.DirEntries, err e
fs: f,
remote: remote,
}
- switch err = file.stat(ctx); err {
+ switch err := file.stat(ctx); err {
case nil:
add(file)
case fs.ErrorNotAFile: