Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Listing
- string host = "ip address";
- string user = "remote user name";
- string password = "remote user password";
- SFTPData SftpData = new SFTPData(host, user, password);
- SFTPAgent SftpAgent = new SFTPAgent(SftpData);
- SftpAgent.UploadFile("local address to file", "remote address to file");
- SftpAgent.DownloadFile("local address to file", "remote address to file");
- SftpAgent.Delete("remote address to file/directory");
- SftpAgent.MoveFile("old remote address to file", "new remote address to file");
- SftpAgent.CreateDirectory("remote address to new directory");
- bool exists = SftpAgent.Exists("remote address to file/directory");
- SftpAgent.UploadDirectory("local address to directory", "remote address to directory");
- SftpAgent.DownloadDirectory("local address to directory", "remote address to directory");
- // Disconnection is handled automaticly
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement