Class SftpFileSystem

    • Constructor Detail

      • SftpFileSystem

        protected SftpFileSystem​(GenericFileName rootName,
                                 com.jcraft.jsch.Session session,
                                 FileSystemOptions fileSystemOptions)
        Constructs a new instance.
        Parameters:
        rootName - The root file name of this file system.
        session - The session.
        fileSystemOptions - Options to build this file system.
    • Method Detail

      • getChannel

        protected com.jcraft.jsch.ChannelSftp getChannel()
                                                  throws java.io.IOException
        Returns an SFTP channel to the server.
        Returns:
        new or reused channel, never null.
        Throws:
        FileSystemException - if a session cannot be created.
        java.io.IOException - if an I/O error is detected.
      • getGroupsIds

        public int[] getGroupsIds()
                           throws com.jcraft.jsch.JSchException,
                                  java.io.IOException
        Gets the (numeric) group IDs.
        Returns:
        the (numeric) group IDs.
        Throws:
        com.jcraft.jsch.JSchException - If a problem occurs while retrieving the group IDs.
        java.io.IOException - if an I/O error is detected.
        Since:
        2.1
      • getUId

        public int getUId()
                   throws com.jcraft.jsch.JSchException,
                          java.io.IOException
        Gets the (numeric) group IDs.
        Returns:
        The numeric user ID
        Throws:
        com.jcraft.jsch.JSchException - If a problem occurs while retrieving the group ID.
        java.io.IOException - if an I/O error is detected.
        Since:
        2.1
      • isExecDisabled

        public boolean isExecDisabled()
        Tests whether the exec channel is disabled.
        Returns:
        Whether the exec channel is disabled.
        See Also:
        execDisabled
      • putChannel

        protected void putChannel​(com.jcraft.jsch.ChannelSftp channelSftp)
        Returns a channel to the pool.
        Parameters:
        channelSftp - the SFTP channel.