try {
if (files.length == 1) {
logger.info("transferring {} to {}", files[0], dest);
transfer.upload(new FileSystemFile(files[0]), dest);
} else {
for (File file : files) {
logger.info("transferring {} to {}", file, dest);
transfer.upload(new FileSystemFile(file), dest + "/" + file.getName());
}
}
return Result.OK;
} catch (IOException e) {