Topic "OverallProgress mostly 0 for PutFiles"

Author Message
isvaljek
[View user's profile]
Donor
Joined: 2015-06-03
Posts: 4
Location: Croatia
I'm using a
Code:
ThreadPool.QueueUserWorkItem(new WaitCallback(DownloadFile), this );


Most of the time FileProgress moves from 0.0 to 1.0 but OverallProgress seems to be 0 most of the time for PutFiles method.

Code:
private void SessionFileTransferProgress(object sender, FileTransferProgressEventArgs e)
        {
            // Print transfer progress
            OverallTransferProgress = e.OverallProgress * 100.0;
            Console.Write("\r{0} {1} ({2} / {3})",e.Side.ToString(), e.FileName, e.FileProgress, OverallTransferProgress);
        }


I'm using WinSCP 5.7.5 NuGet.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Works for me.

Can you show us your code and session log file (Session.SessionLogPath)?
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License