String realFtpDirectory ="";
if (!Const.isEmpty(wFtpDirectory.getText()))
realFtpDirectory = jobMeta.environmentSubstitute(wFtpDirectory.getText());
if(checkfolder)
{
<BUG>ftpclient.chdir("/");
if (!Const.isEmpty(realFtpDirectory))</BUG>
ftpclient.chdir(realFtpDirectory);
}
if(checkmoveToFolder)

String realFtpDirectory ="";
if (!Const.isEmpty(wFtpDirectory.getText()))
realFtpDirectory = jobMeta.environmentSubstitute(wFtpDirectory.getText());
if(checkfolder)
{
if(pwdFolder!=null) ftpclient.chdir(pwdFolder);
if (!Const.isEmpty(realFtpDirectory))
ftpclient.chdir(realFtpDirectory);
}
if(checkmoveToFolder)
