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,

That works great for uploading to a specific directory! However, there is a slight bug: if the destination path does not end with a "/", it is uploaded to a nested directory:
scp.Upload(dirInfo, "/var/wwwroot");
// uploads dirInfo to:
/var/wwwroot/wwwroot/

Viewing all articles
Browse latest Browse all 1729

Latest Images

Trending Articles



Latest Images