Package gri.ssh

Examples of gri.ssh.SftpFileTransfer


   *       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();
View Full Code Here

TOP

Related Classes of gri.ssh.SftpFileTransfer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.