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
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