Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for upload and download progress reporting #101

Closed
pieterclaerhout opened this issue Nov 8, 2016 · 3 comments
Closed

Support for upload and download progress reporting #101

pieterclaerhout opened this issue Nov 8, 2016 · 3 comments
Labels

Comments

@pieterclaerhout
Copy link

It would be very nice to have a unified way to get upload and download progress. Any plans on adding this?

@matryer
Copy link
Contributor

matryer commented Nov 9, 2016

Great idea. I suppose you could do it by reading and counting the bytes read, then subtracting that from the size?

On 8 Nov 2016, at 21:23, Pieter Claerhout notifications@github.com wrote:

It would be very nice to have a unified way to get upload and download progress. Any plans on adding this?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@dahernan
Copy link
Contributor

dahernan commented Nov 9, 2016

Not sure if that is useful in this library, you can always track the progress wrapping the standard io.Reader or io.Writer or using a TeeReader.
Other option is this library https://github.com/bartmeuris/progressio (I didn't use before) that also does it for any Reader and Writer

@matryer matryer added the wontfix label Nov 9, 2016
@matryer
Copy link
Contributor

matryer commented Nov 9, 2016

I agree it should happen outside of this library. Stow returns io.ReadCloser, so any of those other options are available.

@matryer matryer closed this as completed Nov 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants