}
checkConnection();
try {
SFTPClient sftpClient = sshSession.getSsh().newSFTPClient();
List<File> files = new ArrayList<File>(paths.size());
for (String path : paths) {
final File destFile = new File(destParentDir, FilenameUtils.getName(path));
logger.info("transferring {} to {}", path, destFile.getAbsolutePath());
sftpClient.get(path, new FileSystemFile(destFile));
files.add(destFile);
}
return new DownloadResult(files);