feat: add progress for io copy

This commit is contained in:
Noah Hsu
2022-08-31 22:41:27 +08:00
parent 8e1ed4015b
commit 755f4b83f6
2 changed files with 10 additions and 3 deletions

View File

@ -211,7 +211,7 @@ func (d *Local) Put(ctx context.Context, dstDir model.Obj, stream model.FileStre
_ = os.Remove(fullPath)
}
}()
err = utils.CopyWithCtx(ctx, out, stream)
err = utils.CopyWithCtx(ctx, out, stream, stream.GetSize(), up)
if err != nil {
return err
}