Interface CopyFileExtension
-
- All Superinterfaces:
NamedResource
,OptionalFeature
,SftpClientExtension
- All Known Implementing Classes:
CopyFileExtensionImpl
public interface CopyFileExtension extends SftpClientExtension
- See Also:
- copy-file extension
-
-
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
copyFile(java.lang.String src, java.lang.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.client.subsystem.sftp.extensions.SftpClientExtension
getClient
-
-
-
-
Method Detail
-
copyFile
void copyFile(java.lang.String src, java.lang.String dst, boolean overwriteDestination) throws java.io.IOException
- Parameters:
src
- The (remote) file source pathdst
- The (remote) file destination pathoverwriteDestination
- Iftrue
then OK to override destination if exists- Throws:
java.io.IOException
- If failed to execute the command or extension not supported
-
-