mirror of
https://github.com/rclone/rclone.git
synced 2025-04-19 18:31:10 +08:00
fix setting bytes/hash
This commit is contained in:
parent
d430c1392c
commit
56ec9b75dd
@ -1625,13 +1625,13 @@ func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (in io.Read
|
||||
|
||||
if o.nonDownloadable {
|
||||
arg := files.ExportArg{Path: o.id, ExportFormat: o.exportFormat}
|
||||
var exportResult *files.ExportResult
|
||||
err = o.fs.pacer.Call(func() (bool, error) {
|
||||
var exportResult *files.ExportResult
|
||||
exportResult, in, err = o.fs.srv.Export(&arg)
|
||||
o.bytes = int64(exportResult.ExportMetadata.Size)
|
||||
o.hash = exportResult.ExportMetadata.ExportHash
|
||||
return shouldRetry(ctx, err)
|
||||
})
|
||||
o.bytes = int64(exportResult.ExportMetadata.Size)
|
||||
o.hash = exportResult.ExportMetadata.ExportHash
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user