Class SftpCommandMain.RmCommandExecutor

    • Constructor Detail

      • RmCommandExecutor

        RmCommandExecutor()
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface NamedResource
        Returns:
        The resource name
      • executeCommand

        public boolean executeCommand​(java.lang.String args,
                                      java.io.BufferedReader stdin,
                                      java.io.PrintStream stdout,
                                      java.io.PrintStream stderr)
                               throws java.lang.Exception
        Specified by:
        executeCommand in interface SftpCommandExecutor
        Throws:
        java.lang.Exception
      • removeRecursive

        private void removeRecursive​(SftpClient sftp,
                                     java.lang.String path,
                                     SftpClient.Attributes attrs,
                                     java.io.PrintStream stdout,
                                     boolean verbose)
                              throws java.io.IOException
        Throws:
        java.io.IOException