}
@Override
protected boolean ignoreCannotRetrieveFile(String name, Exchange exchange, Exception cause) {
if (getEndpoint().getConfiguration().isIgnoreFileNotFoundOrPermissionError()) {
SftpException sftp = ObjectHelper.getException(SftpException.class, cause);
if (sftp != null) {
return sftp.id == ChannelSftp.SSH_FX_NO_SUCH_FILE || sftp.id == ChannelSftp.SSH_FX_PERMISSION_DENIED;
}
}
return super.ignoreCannotRetrieveFile(name, exchange, cause);