public final class FtpRenameCommand extends FtpCommand implements org.mule.extension.file.common.api.command.RenameCommand
FtpCommand which implements the RenameCommandclient, ROOT| Constructor and Description |
|---|
FtpRenameCommand(FtpFileSystem fileSystem,
org.apache.commons.net.ftp.FTPClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
rename(String filePath,
String newName,
boolean overwrite)
Renames the file at
filePath to newName. |
changeWorkingDirectory, changeWorkingDirectory, copy, createDirectory, doMkDirs, exception, exists, getBasePath, getCurrentWorkingDirectory, getExistingFile, getFile, getFile, makeDirectory, resolvePath, tryChangeWorkingDirectorypublic FtpRenameCommand(FtpFileSystem fileSystem, org.apache.commons.net.ftp.FTPClient client)
public void rename(String filePath, String newName, boolean overwrite)
filePath to newName.rename in interface org.mule.extension.file.common.api.command.RenameCommandrename in class FtpCommandfilePath - the path of the file to be renamednewName - the new nameoverwrite - whether to overwrite the target file if it already existsCopyright © 2018 MuleSoft, Inc.. All rights reserved.