Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: How can i get the information of FileTransfer Progress on SCP ??

$
0
0
Hi,

Here is a code example that I used ion my test:
            using (var scp = new ScpClient(connectionInfo))
            {
                scp.Connect();
                scp.BufferSize = 1024;
                scp.Downloading += delegate(object sender, ScpDownloadEventArgs e)
                {
                    Console.WriteLine(e.Filename + ":" + e.Size + ":" + e.Downloaded);
                };

                scp.Uploading += delegate(object sender, ScpUploadEventArgs e)
                {
                    Console.WriteLine(e.Filename + ":" + e.Size + ":" + e.Uploaded);
                };
Unfortunately I recently just found a bug that Uploading does not count it correctly so will try to fix it later.

Hope it helps,
Thanks,
Oleg

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>