Class SftpCommandMain.TransferCommandExecutor

    • Constructor Detail

      • TransferCommandExecutor

        protected TransferCommandExecutor()
    • Method Detail

      • createDirectories

        protected void createDirectories​(SftpClient sftp,
                                         java.lang.String remotePath,
                                         java.io.PrintStream stdout,
                                         boolean verbose)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • transferFile

        protected void transferFile​(SftpClient sftp,
                                    java.nio.file.Path localPath,
                                    java.lang.String remotePath,
                                    boolean upload,
                                    java.io.PrintStream stdout,
                                    boolean verbose)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • transferRemoteDir

        protected void transferRemoteDir​(SftpClient sftp,
                                         java.nio.file.Path localPath,
                                         java.lang.String remotePath,
                                         SftpClient.Attributes attrs,
                                         java.io.PrintStream stdout,
                                         boolean verbose)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • transferLocalDir

        protected void transferLocalDir​(SftpClient sftp,
                                        java.nio.file.Path localPath,
                                        java.lang.String remotePath,
                                        java.io.PrintStream stdout,
                                        boolean verbose)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • executeCommand

        protected void executeCommand​(java.lang.String args,
                                      boolean upload,
                                      java.io.PrintStream stdout)
                               throws java.io.IOException
        Throws:
        java.io.IOException