public final class SftpRenameCommand extends SftpCommand implements org.mule.extension.file.common.api.command.RenameCommand
SftpCommand which implements the RenameCommand contractclient| Constructor and Description |
|---|
SftpRenameCommand(SftpFileSystem fileSystem,
SftpClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
rename(String filePath,
String newName,
boolean overwrite)
Template method that renames the file at
filePath to newName. |
doMkDirs, doRename, getCurrentWorkingDirectory, getFile, tryChangeWorkingDirectorychangeWorkingDirectory, changeWorkingDirectory, copy, createDirectory, exists, getBasePath, getExistingFile, getFilepublic SftpRenameCommand(SftpFileSystem fileSystem, SftpClient client)
public void rename(String filePath, String newName, boolean overwrite)
filePath to newName.
This method performs path resolution and validation and eventually delegates into FtpCommand.doRename(String, String), in which
the actual renaming implementation is.
rename in interface org.mule.extension.file.common.api.command.RenameCommandrename in class FtpCommand<SftpFileSystem>filePath - the path of the file to be renamednewName - the new nameoverwrite - whether to overwrite the target file if it already existsCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.