Quantcast
Channel: SSH.NET Library
Viewing all articles
Browse latest Browse all 2955

New Post: When Listing files using ListDirectory is there a way to not include child directories?

$
0
0
I need to list the files in the current directory without getting the child directories. Is there a way to do this?
filePath = "."
For Each f As Renci.SshNet.Sftp.SftpFile In ssh2.ListDirectory(filePath)
          fileList.Add(f.Name)
Next

Viewing all articles
Browse latest Browse all 2955


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>