login about faq

The sftp.SyncTreeDownload function does not fire the event sftp_PercentDone. That must be a mistake, because sftp.SynctreeUpload fires the event ?? Thx Christian

asked Jul 20 '15 at 04:17

Christian's gravatar image


There are no percent-done callbacks for the SyncTreeDownload method because it is not known ahead of time how much work is to be done -- that is only discovered as the remote tree is being traversed. Perhaps this might change in the future if the traversal could happen first -- only for the purpose of determining what work must be done for the sync, and thus making it possible for computing a percent-done. There are pitfalls in doing this: (1) if the remote directory tree is very large, then no progress would seem to occur during this initial traversal, and (2) the actual download would need to be either a 2nd entire traversal, or an iteration of the remote paths accumulated in the 1st traversal -- but if the first traversal produces a huge list of files to be downloaded, this could cause memory issues on certain memory-limited platforms. So for now, there are no percent-done callbacks for SyncTreeDownload.


answered Jul 20 '15 at 10:09

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jul 20 '15 at 04:17

Seen: 711 times

Last updated: Jul 20 '15 at 10:09

powered by OSQA