Interface CopyFileExtension
-
- All Superinterfaces:
NamedResource
,OptionalFeature
,SftpClientExtension
,SftpClientHolder
- All Known Implementing Classes:
CopyFileExtensionImpl
public interface CopyFileExtension extends SftpClientExtension
- Author:
- Apache MINA SSHD Project
- 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(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 Detail
-
copyFile
void copyFile(String src, String dst, boolean overwriteDestination) throws IOException
- Parameters:
src
- The (remote) file source pathdst
- The (remote) file destination pathoverwriteDestination
- Iftrue
then OK to override destination if exists- Throws:
IOException
- If failed to execute the command or extension not supported
-
-