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

New Post: SCP : Missing files when using DirectoryUpload

$
0
0

Hi,

thank you for trying to reproduce. I'm using a very simple code fragment:

using (mSsh = new SshClient(address, user, pass))
{
  mSsh.Connect();using (mScp = new ScpClient(address, user, pass))
  {
    mScp.Connect();
    mScp.ErrorOccurred += new EventHandler<Renci.SshNet.Common.ExceptionEventArgs>(mScp_ErrorOccurred);
    mScp.Uploading += new EventHandler<Renci.SshNet.Common.ScpUploadEventArgs>(mScp_Uploading);

    mScp.Upload( new DirectoryInfo(mcLocalDir)
               , mcRemoteDir);
  }
}

I also played around with reducing the SCP buffersize by e.g. "mScpClient.BufferSize = 8 * 1024;". But it did not change the
problematic behaviour.


Viewing all articles
Browse latest Browse all 1729

Trending Articles



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