Class CopyFileExtensionImpl

All Implemented Interfaces:
NamedResource, OptionalFeature, CopyFileExtension, SftpClientExtension, RawSftpClient

public class CopyFileExtensionImpl extends AbstractSftpClientExtension implements CopyFileExtension
Implements the "copy-file" extension
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