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

Latest Images

Trending Articles



Latest Images