title: Get list of filenames from a remote directory FTP SSH
body: <p>I need to get the list of all the filenames through SFTP with VB. I'm trying to place it in an ArrayList, but unsure on the commands to use..</p>
  
  <pre><code>Public Shared Function Retrieve_Directory_list(ByVal strHost As String, _
                                  ByVal strUsername As String, _
                                  ByVal strPassword As String, _
                                  ByVal strFtpFilePath As String, _
                                  ByVal strlocalFilePath As String) As ArrayList)
  
      Dim sshCp As SshTransferProtocolBase
      Dim res As New ArrayList()
  
      sshCp = New Sftp(strHost, strUsername, strPassword)
  
      sshCp.Connect()
  
  'res = sshCp.???
  
  
      sshCp.Close()
  
  Return res
  
  End Function
  </code></pre>
  
  <p>Please let me know if u need anything else.  Thanks!</p>