* setting it to -1 would allow recursive downloading
* of all child folders as well.
*/
protected void processComplete() throws Exception {
//retrieve files:
SftpFileTransfer transfer = new SftpFileTransfer(session);
transfer.getDirectory(super.remotePath, localWorkdir, 0);
//delete remote directory:
if (deleteRemoteDirectory) {
ChannelSftp sftp = (ChannelSftp)session.openChannel("sftp");
sftp.connect();