SFTP sftp = new SFTP(); //Trial Mode
//SFTP sftp = new SFTP("place user name here", "place license key here");
// set the name of the SSH server( its URL )
sftp.HostAddress = "some.sftp.server.com"; // replace with your SFTP server
sftp.UserName = "anonymous"; // replace with your user name
sftp.Password = "user@mail.com"; // replace with your password
sftp.OverwriteFiles = false; //The default is true
sftp.OverwriteReadOnlyFiles = false; //The default is false
sftp.SynchronizeDownload("C:\\Download", "TestDir");
//if a.txt exists on both folders and if its the same file, there will be no need to
// transfer it
// When synchronizing, or when not overwriting files,
// this is the current number of files that didn't need to be transferred
System.Console.WriteLine("The FTP component did not have to transfer {0} files", sftp.SkippedFiles);