Hi,
I have connected to one SFTP server using Rebex SFTP package and able to transfer the files into SFTP server. But DirectoryExists method is not working as expected, since it always returns as 'true' in both cases, whether the mentioned directory is present or not.
I also found that ChangeDirectory method does not throw any error, if the mentioned directory is not present. Please find the sample code below
` Sftp server = new Sftp();
server.Connect(strServerName);
server.Login(strUserName, strPassword);
Console.WriteLine(server.GetCurrentDirectory().ToString());
bool bExists=server.DirectoryExists("Directory123");
Console.WriteLine("The Directory (Directory123) Exists : " + bExists.ToString());
bExists = server.FileExists("test.abc");
Console.WriteLine("The File (test) Exists : " + bExists.ToString());`
FileExists is working as expected, where as DirectoryExists method is not.
Thanks