forked from TrueCloudLab/rclone
6a0a54ab97
Before this change multipart downloads to the local disk with --metadata failed to have their metadata set properly. This was because the OpenWriterAt interface doesn't receive metadata when creating the object. This patch fixes the problem by using the recently introduced Object.SetMetadata method to set the metadata on the object after the download has completed (when using --metadata). If the backend we are copying to is using OpenWriterAt but the Object doesn't support SetMetadata then it will write an ERROR level log but complete successfully. This should not happen at the moment as only the local backend supports metadata and OpenWriterAt but it may in the future. It also adds a test to check metadata is preserved when doing multipart transfers. Fixes #7424 |
||
---|---|---|
.. | ||
operationsflags | ||
check.go | ||
check_test.go | ||
copy.go | ||
copy_test.go | ||
dedupe.go | ||
dedupe_test.go | ||
listdirsorted_test.go | ||
logger.go | ||
lsjson.go | ||
lsjson_test.go | ||
multithread.go | ||
multithread_test.go | ||
operations.go | ||
operations_internal_test.go | ||
operations_test.go | ||
rc.go | ||
rc_test.go | ||
reopen.go | ||
reopen_test.go |