Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Sorry, but you have just repeated what we know already.
geek569

I mean how to get the right OverallProgress in FileTransferProgress when using ComparisonDifference.Resolve()
session.FileTransferProgress += (s, e) =>
{
   Log($"{e.FileName} | {e.CPS}/s | {e.FileProgress:P0} | {OverallProgress???}");
};
martin

Sorry, but what you are you asking for? For an overall progress over multiple Resolve calls? You would have to calculate it on your own, based on ComparisonDifference.Local/Remote.Length.
geek569

A way to get OverallProgress with Resolve()?
martin

Re: Session.CompareDirectories issue with FileTransferProgressEventArgs.OverallProgress

The Session.CompareDirectories should not even trigger the Session.FileTransferProgress event – as Session.CompareDirectories does not do any transfer.

The ComparisonDifference.Resolve typically transfers a single file only (unless the difference is a new folder). So indeed FileTransferProgressEventArgs.FileProgress and FileTransferProgressEventArgs.OverallProgress would be equal.
geek569

Session.CompareDirectories issue with FileTransferProgressEventArgs.OverallProgress

FileTransferProgressEventArgs.FileProgress and FileTransferProgressEventArgs.OverallProgress are reported equals by Session.CompareDirectories() and ComparisonDifference.Resolve().