mirror of
https://github.com/rclone/rclone.git
synced 2025-08-17 17:11:37 +02:00
operations: make ReOpen and NewReOpen public for re-use elsewhere
This commit is contained in:
@ -403,7 +403,7 @@ func Copy(ctx context.Context, f fs.Fs, dst fs.Object, remote string, src fs.Obj
|
||||
}
|
||||
} else {
|
||||
var in0 io.ReadCloser
|
||||
in0, err = newReOpen(ctx, src, hashOption, nil, fs.Config.LowLevelRetries)
|
||||
in0, err = NewReOpen(ctx, src, hashOption, nil, fs.Config.LowLevelRetries)
|
||||
if err != nil {
|
||||
err = errors.Wrap(err, "failed to open source object")
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user