/** * Put the file given * * @param file - the file * @throws ResourceException when sending a file */ protected void putFile(BaseFileTransferMappedRecord file) throws ResourceException { if(logger.isDebugEnabled()) { logger.debug("Putting file [" + file.getName() + "]..."); //$NON-NLS-1$ //$NON-NLS-2$ } try { this.getClient().put(file.getName(), file.getContent()); logger.debug("Put successful."); //$NON-NLS-1$ } catch (ClientCommandPutException e) { logger.warn("Underlying File Transfer operation failed [PUT]!", e); //$NON-NLS-1$ throw new ResourceException(e); } }