public class CopyFileExtensionImpl extends AbstractSftpClientExtension implements CopyFileExtension
log
BY_NAME_COMPARATOR, NAME_EXTRACTOR
FALSE, TRUE
Constructor and Description |
---|
CopyFileExtensionImpl(SftpClient client,
RawSftpClient raw,
Collection<String> extra) |
Modifier and Type | Method and Description |
---|---|
void |
copyFile(String src,
String dst,
boolean overwriteDestination) |
checkExtendedReplyBuffer, checkStatus, getClient, getCommandBuffer, getCommandBuffer, getCommandBuffer, getName, isSupported, putTarget, receive, receive, receive, send, sendAndCheckExtendedCommandStatus, sendExtendedCommand, throwStatusException, validateIncomingResponse
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findByName, findFirstMatchByName, getName, getNameList, getNames, ofName, removeByName, safeCompareByName
all, any, isSupported, of
getClient
public CopyFileExtensionImpl(SftpClient client, RawSftpClient raw, Collection<String> extra)
public void copyFile(String src, String dst, boolean overwriteDestination) throws IOException
copyFile
in interface CopyFileExtension
src
- The (remote) file source pathdst
- The (remote) file destination pathoverwriteDestination
- If true
then OK to override destination if existsIOException
- If failed to execute the command or extension not supportedCopyright © 2008–2024 The Apache Software Foundation. All rights reserved.