0

Is there a way to refresh the download/upload progress of a SFTP transfer in WinSCP? I know by default is updated every second, but for smaller files, it would be great to refresh every 100ms or so.

I am using this progress to update a console based progress bar.

I have my code as shown:

using (Session session = new Session())
{
        session.FileTransferProgress += SessionFileTransferProgress;

        // Download/Upload code...
}

And the function itself:

void SessionFileTransferProgress(object sender, FileTransferProgressEventArgs e)
{
        //Basically draws a simple console based progress bar
        DrawProgressBar(e.FileProgress, 1, e.CPS); 
}

As mentioned, no problems with the code, it works fine. But it would be great to refresh my progress bar every less milliseconds.

Is this possible?

1 Answer 1

0

No, it's not possible to alter the interval.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.