Interface CopyFileExtension

All Superinterfaces:
org.apache.sshd.common.NamedResource, org.apache.sshd.common.OptionalFeature, SftpClientExtension, SftpClientHolder
All Known Implementing Classes:
CopyFileExtensionImpl

public interface CopyFileExtension extends SftpClientExtension
Author:
Apache MINA SSHD Project
See Also:
  • Field Summary

    Fields inherited from interface org.apache.sshd.common.NamedResource

    BY_NAME_COMPARATOR, NAME_EXTRACTOR

    Fields inherited from interface org.apache.sshd.common.OptionalFeature

    FALSE, TRUE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    copyFile(String src, String dst, boolean overwriteDestination)
     

    Methods inherited from interface org.apache.sshd.common.NamedResource

    getName

    Methods inherited from interface org.apache.sshd.common.OptionalFeature

    isSupported

    Methods inherited from interface org.apache.sshd.sftp.client.SftpClientHolder

    getClient
  • Method Details

    • copyFile

      void copyFile(String src, String dst, boolean overwriteDestination) throws IOException
      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