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

union: fix initialisation broken in refactor - fixes #5139

Nick Craig-Woodb8c1cf7451d3
diff --git a/backend/union/upstream/upstream.go b/backend/union/upstream/upstream.go
index 99973f9e2..93bce52e9 100644
--- a/backend/union/upstream/upstream.go
+++ b/backend/union/upstream/upstream.go
@@ -90,7 +90,7 @@ func New(ctx context.Context, remote, root string, cacheTime time.Duration) (*Fs
return nil, err
}
f.RootFs = rFs
- rootString := path.Join(fsPath, filepath.ToSlash(root))
+ rootString := path.Join(remote, filepath.ToSlash(root))
myFs, err := cache.Get(ctx, rootString)
if err != nil && err != fs.ErrorIsFile {
return nil, err