if(!Const.isEmpty(realfoldername))
{
if(connect())
{
if(wProtocol.getText().equals("FTP"))
<BUG>{
ftpclient.chdir(realfoldername);</BUG>
folderexists=true;
}
<BUG>else if(wProtocol.getText().equals("FTP"))

{
sftpclient.chdir(realfoldername);</BUG>
folderexists=true;

if(!Const.isEmpty(realfoldername))
{
if(connect())
{
if(wProtocol.getText().equals("FTP"))
{
ftpclient.chdir(pwdFolder);
ftpclient.chdir(realfoldername);
folderexists=true;
