Examples of lstat()


Examples of com.jcraft.jsch.ChannelSftp.lstat()

        SftpATTRS fileAttributes = null;
        String remotePath = null;
        ChannelSftp channel = openSftpChannel();
        channel.connect();
        try {
            fileAttributes = channel.lstat(remoteDir(remoteFile)
                                           + localFile.getName());
        } catch (SftpException e) {
            throw new JSchException("failed to stat remote file", e);
        }
        FileUtils.getFileUtils().setFileLastModified(localFile,
View Full Code Here

Examples of com.jcraft.jsch.ChannelSftp.lstat()

    private void setLastModified(File localFile) throws JSchException {
        SftpATTRS fileAttributes = null;
        ChannelSftp channel = openSftpChannel();
        channel.connect();
        try {
            fileAttributes = channel.lstat(remoteDir(remoteFile)
                                           + localFile.getName());
        } catch (SftpException e) {
            throw new JSchException("failed to stat remote file", e);
        }
        FileUtils.getFileUtils().setFileLastModified(localFile,
View Full Code Here

Examples of com.trilead.ssh2.SFTPv3Client.lstat()

    try {

      sftpConn = new SFTPv3Client(conn);
      boolean createDir = true;
      try {
        sftpConn.lstat(directory);
        createDir = false;
      } catch (IOException e) {
        createDir = true;
      }
      if (createDir)
View Full Code Here

Examples of com.trilead.ssh2.SFTPv3Client.lstat()

      throws IOException {
    SFTPv3DirectoryEntry entry = new SFTPv3DirectoryEntry();
    SFTPv3Client sftpConn = null;
    try {
      sftpConn = new SFTPv3Client(conn);
      SFTPv3FileAttributes attribute = sftpConn.lstat(path);
      entry.attributes = attribute;
      entry.filename = path.substring(path.lastIndexOf("/") + 1);
    } catch (IOException e) {
      throw e;
    } finally {
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.