Package org.apache.sshd.cli.client
Class SftpCommandMain.RmCommandExecutor
java.lang.Object
org.apache.sshd.cli.client.SftpCommandMain.RmCommandExecutor
- All Implemented Interfaces:
SftpCommandExecutor
,org.apache.sshd.common.NamedResource
- Enclosing class:
SftpCommandMain
-
Field Summary
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
executeCommand
(String args, BufferedReader stdin, PrintStream stdout, PrintStream stderr) getName()
private void
removeRecursive
(org.apache.sshd.sftp.client.SftpClient sftp, String path, org.apache.sshd.sftp.client.SftpClient.Attributes attrs, PrintStream stdout, boolean verbose)
-
Constructor Details
-
RmCommandExecutor
RmCommandExecutor()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceorg.apache.sshd.common.NamedResource
-
executeCommand
public boolean executeCommand(String args, BufferedReader stdin, PrintStream stdout, PrintStream stderr) throws Exception - Specified by:
executeCommand
in interfaceSftpCommandExecutor
- Throws:
Exception
-
removeRecursive
private void removeRecursive(org.apache.sshd.sftp.client.SftpClient sftp, String path, org.apache.sshd.sftp.client.SftpClient.Attributes attrs, PrintStream stdout, boolean verbose) throws IOException - Throws:
IOException
-