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

[Feature] Google Drive: Allow progress monitoring for downloads & uploads #355

Open
semtexzv opened this issue Sep 3, 2022 · 3 comments

Comments

@semtexzv
Copy link

semtexzv commented Sep 3, 2022

When working with large files, It'd be nice to be able to monitor the progress of upload/download.
Adding a new method to delegate that would be called after every chunk with position in the stream.

@Byron
Copy link
Owner

Byron commented Sep 4, 2022

I do conquer!

It might be interesting to implement it so that the caller can inspect the chunk and its bytes, as to allow calculations to happen while streaming.

@dmatos2012
Copy link

This would be super cool as well! I was just now trying to do it, but I also was not able to inspect percentage for file upload, and would get only a response once its finished via the Delegate Trait.

I would gladly help: problem is I am bit new to rust, but not sure how difficult this would be to implement. Perhaps if you could help me with pointers or where to look/what to look out for, I could give it a try, and perhaps message if super confused :).

Btw: Very helpful and cool videos on your Learning Rust with Gitoxide playlist. I have watched some of them and found them very helpful to improve my Rust:)

@Byron
Copy link
Owner

Byron commented Nov 6, 2022

Thanks, it's good to hear these videos make a difference :).

As for learning Rust, this project probably isn't well suited as it's mostly python and a template language called 'mako', which generates all the Rust code. Working with it isn't terrible, but definitely more abstract than it should be for stepping into Rust. On top of that I am swamped and can't offer any mentoring. I will review PRs though in case you want to give it a shot anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants