Hi I´m implementing a sftp client using Zeon library and it works fine. The problem starts when I test it for failures here is my code:
int status = 0;
try {
SFTPClient sftpClient = new SFTPClient(host, username, password);
status = sftpClient.sendFolder(sendingFolder, destFolder, new BatchTransferProgressDefault());
System.out.println("FileTransferStatus.SUCCESS: " + FileTransferStatus.SUCCESS);
System.out.println("status: " + status);
}catch (FileTransferException e){
LOGGER.error(e);
}catch (Exception e2){
LOGGER.error(e2);
}
So I put a wrong host, username and password and the status flag still returns true even tough my console shows an exception and it doesn´t enter into my exception.
Does anyone knows how to force the zeon libraries into entering into my exception block??
Thanks in advance
it seems to be a bug of the library i will have to look for a different library. It´s shame because it was easy to use.