I connect to SFTP host.
That host has a folder files
And one file in it.
I need to get a list of names of file in that folder (files).
I tried:
using (var client = new SftpClient(FtpFolder, 22, FtpUsername, FtpPassword))
{
client.Connect();
client.ChangeDirectory("files");
var files = client.ListDirectory(".").ToList();
client.Disconnect();
}
But instead of 1 file I also get parent folder reference I think.
Please advice! Thanks.

