rclone/backend/union
Nick Craig-Wood c2baacc0a4 union: fix uploading files to union of all bucket based remotes
Before this fix, if uploading to a union consisting of all bucket
based remotes (eg s3), uploads failed with:

    Failed to copy: object not found

This was because the union backend was relying on parent directories
being created to work out which files to upload. If all the upstreams
were bucket based backends which can't hold empty directories, no
directories were created and the upload failed.

This fixes the problem by returning the upstreams used when creating
the directory for the upload, rather than searching for them again
after they've been created.

This will also make the union backend a little more efficient.

Fixes #6170
2022-05-19 13:23:41 +01:00
..
policy backend: Fix union eplus policy returned nil 2021-11-08 11:55:27 +00:00
upstream union: fix treatment of remotes with // in 2021-11-23 17:41:12 +00:00
entry.go union: fix deadlock when one part of a multi-upload fails 2022-03-09 11:30:55 +00:00
errors.go doc: fix typos throughout docs and code 2020-05-20 15:54:51 +01:00
union.go union: fix uploading files to union of all bucket based remotes 2022-05-19 13:23:41 +01:00
union_internal_test.go test: use T.TempDir to create temporary test directory 2022-02-01 11:47:04 +00:00
union_test.go test: use T.TempDir to create temporary test directory 2022-02-01 11:47:04 +00:00