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

New Post: SCP copy to a specific folder

$
0
0
Hi Oleg,

The fix in 22896 works for uploading a file, but doesn't work when uploading a directory:
using (var c = new ScpClient("host", "user", "password"))
{
    c.Connect();
    var di = new DirectoryInfo(@"c:\toupload");
    // FAILS - scp: error: unexpected filename: /var/wwwroot
    c.Upload(di, "/var/wwwroot"); 
    c.Disconnect();
}

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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