Examples of SFTPv3Client


Examples of com.trilead.ssh2.SFTPv3Client

   * (non-Javadoc)
   *
   * @see jSimMacs.logic.location.DataHandler#delete(java.lang.String)
   */
  public void delete(String pathString) throws IOException {
    SFTPv3Client sftpConn = null;
    try {
      sftpConn = new SFTPv3Client(conn);
      SFTPv3DirectoryEntry dirEntry = getDirectoryEntry(pathString);
      if (dirEntry.attributes.isDirectory()) {
        deleteDirectory(sftpConn, dirEntry, pathString);
      } else
        sftpConn.rm(pathString);
    } catch (IOException e) {
      throw e;
    } finally {
      if (sftpConn != null)
        sftpConn.close();
    }

  }
View Full Code Here

Examples of com.trilead.ssh2.SFTPv3Client

   * (non-Javadoc)
   *
   * @see jSimMacs.logic.location.DataHandler#deleteBackup(java.lang.String)
   */
  public void deleteBackup(String pathString) throws IOException {
    SFTPv3Client sftpConn = null;
    try {
      sftpConn = new SFTPv3Client(conn);
      SFTPv3DirectoryEntry dirEntry = getDirectoryEntry(pathString);
      if (dirEntry.attributes.isDirectory()) {
        deleteBackupDirectory(sftpConn, dirEntry, pathString);
      } else if (dirEntry.filename.startsWith("#")
          && dirEntry.filename.endsWith("#"))
        sftpConn.rm(pathString);
    } catch (IOException e) {
      throw e;
    } finally {
      if (sftpConn != null)
        sftpConn.close();
    }

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.