I am using SharpSSH (http://www.tamirgal.com/blog/page/SharpSSH.aspx) to upload a file to some sftp server. This works nice. Now I want to download a file and I guess the Get method can be used for that. Thats my code:
Sftp sftp = new Sftp(ip, user, password);
sftp.Connect();
sftp.Get(pathOnSftpServer (/home/file.txt), localPathOnMyComputer (c:\test.txt));
sftp.Close();
The Get method has void as return type so I guess the file will be saved to what I specified in the 2nd parameter? Whats wrong with the above code? The file is not saved as c:\test.txt.
Thanks :-)