Class CopyFileExtensionImpl

java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.sftp.client.extensions.helpers.AbstractSftpClientExtension
org.apache.sshd.sftp.client.extensions.helpers.CopyFileExtensionImpl
All Implemented Interfaces:
NamedResource, OptionalFeature, CopyFileExtension, SftpClientExtension, RawSftpClient, SftpClientHolder

public class CopyFileExtensionImpl extends AbstractSftpClientExtension implements CopyFileExtension
Implements the "copy-file" extension
Author:
Apache MINA SSHD Project
See Also:
  • Constructor Details

  • Method Details

    • copyFile

      public void copyFile(String src, String dst, boolean overwriteDestination) throws IOException
      Specified by:
      copyFile in interface CopyFileExtension
      Parameters:
      src - The (remote) file source path
      dst - The (remote) file destination path
      overwriteDestination - If true then OK to override destination if exists
      Throws:
      IOException - If failed to execute the command or extension not supported