Differences

This shows you the differences between the selected revisions of the page.

2016-02-03 2016-02-03
redundant type specification (martin) no my prefix (martin)
Line 90: Line 90:
        Try         Try
            ' Setup session options             ' Setup session options
-            Dim mySessionOptions As New SessionOptions +            Dim sessionOptions As New SessionOptions 
-            With mySessionOptions+            With sessionOptions
                .Protocol = Protocol.Sftp                 .Protocol = Protocol.Sftp
                .HostName = "example.com"                 .HostName = "example.com"
Line 99: Line 99:
            End With             End With
-            Using mySession As New Session+            Using session As New Session
                ' Connect                 ' Connect
-                mySession.Open(mySessionOptions)+                session.Open(sessionOptions)
-                Dim directory As RemoteDirectoryInfo = mySession.ListDirectory("/home/martin/public_html")+                Dim directory As RemoteDirectoryInfo = session.ListDirectory("/home/martin/public_html")
                Dim fileInfo As RemoteFileInfo                 Dim fileInfo As RemoteFileInfo

Last modified: by martin