Dim sftp As SFTP = New SFTP() 'Trial Mode
'Dim sftp = New SFTP("place user name here", "place license key here")
' set the name of the SFTP 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
'Renames a file in the current FTP directory
Dim status As Boolean = sftp.RenameFile("a.txt", "b.txt")
If status = True Then
sftp.RenameFile("b.txt", "a.txt")
End If
If status = True Then
System.Console.WriteLine("a.txt has {0} renamed to newDir and back again","been")
Else
System.Console.WriteLine("a.txt has {0} renamed to newDir and back again","not been")
End If