I have been using sshj libraries
<dependency>
<groupId>net.schmizz</groupId>
<artifactId>sshj</artifactId>
<version>0.3.1</version>
</dependency>
Following was my code using 0.3.1 which worked fine for doing uploading of files supporting wildcard patterns.
SSHClient client = null;
SCPUploadClient uploader = null;
try {
client = getClient();
uploader = client.newSCPFileTransfer().newSCPUploadClient();
uploader.setFileFilter(new WildcardFileFilter(wildCardPattern));
//determine the remote directory
File f = new File(localDirLocation);
String dir = remoteDirLocation + f.getName();
uploader.copy(localDirLocation, remoteDirLocation);
} catch (IOException e) {
//processing exceptions here
} finally {
disconnectClient(client);
}
But now the code gives me a lot of compilation errors when I tried moving over to 0.5.0.
I would like to understand how do I go about setting fileFilters when I want to do uploading and downloading of files from local to remote machine and vice versa
Can someone please help me with this ?