-
Notifications
You must be signed in to change notification settings - Fork 22
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
No progress when uploading througth SFTP #19
Comments
Hello, |
Hi, I see what you mean (I now understand why I didn't get any progress through progress_callback() (I was testing with too small files). However, I also get these kinds of updates when downloading, so is there a reason 'extra' progress is provided when downloading by write_to_stream(), but not in read_from_stream()? Why is there a different approach between the two? |
Hello, |
I've checked by removing the calls from write_to_stream(), in that case it behaves exactly the same as uploading does, so I get a progress callback about once a second. I'd suggest to remove the extra calls from write_to_stream(), also because there is a bool you can return to abort the transfer, but that obviously only will work when the OnProgress event came from progress_callback() and not when it came from write_to_stream() |
The progress information during download (OnProgress event) is driven due to
In write_to_stream(), is there a reason the same code is not in read_from_stream() to give equal progress during upload?
Like this:
The text was updated successfully, but these errors were encountered: