SSL\TLS GetListing() can't list subdirectories items

Sep 5, 2014 at 4:11 AM
example:
Ftp Server:
/downloads            Dir
/downloads/a.xml   File
TLS  Mode

                conn.Host = "127.0.0.1";
                conn.Port = 990;
                conn.EncryptionMode = FtpEncryptionMode.Implicit;
                conn.SocketKeepAlive = false;
                conn.DataConnectionType = FtpDataConnectionType.PASV;
                conn.DataConnectionEncryption = true;
                conn.Credentials = new NetworkCredential("test", "test");
                conn.ValidateCertificate += (control, ev) => { ev.Accept = true; };
                conn.Encoding = System.Text.Encoding.Default;

                var path = "/downloads";
                var items = conn.GetListing(path);

Result is error, items[0].FullName : "/downloads/downloads"
BUT:
                conn.Host = "127.0.0.1";
                conn.Port = 21;
                conn.Credentials = new NetworkCredential("test", "test");

                var path = "/downloads";
                var items = conn.GetListing(path);

Result is right, items[0].FullName: "/downloads/a.xml"