I am using jsch to download files from server, my code below.
public static void downloadFile(TpcCredentialsDTO dto) {
logger.trace(\"Entering downlo
I fixed in this way:
Vector files = sftp.ls(remotePath);
String remotePath = properties.getFtpPath();
Vector files = sftp.ls(remotePath);
for (ChannelSftp.LsEntry entry : files) {
InputStream stream = sftp.get(remotePath + "/" + entry.getFilename());
// Your business code here
}
Where remotePath is the remote SFTP folder name.