public final class LocalRenameCommand extends org.mule.extension.file.common.api.command.FileCommand<LocalFileSystem> implements org.mule.extension.file.common.api.command.RenameCommand
LocalFileCommand which implements the RenameCommand contract| Constructor and Description |
|---|
LocalRenameCommand(LocalFileSystem fileSystem) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doMkDirs(Path directoryPath)
|
protected boolean |
exists(Path path) |
protected Path |
getBasePath(org.mule.extension.file.common.api.FileSystem fileSystem) |
void |
rename(String filePath,
String newName,
boolean overwrite) |
public LocalRenameCommand(LocalFileSystem fileSystem)
public void rename(String filePath, String newName, boolean overwrite)
rename in interface org.mule.extension.file.common.api.command.RenameCommandprotected Path getBasePath(org.mule.extension.file.common.api.FileSystem fileSystem)
getBasePath in class org.mule.extension.file.common.api.command.FileCommand<LocalFileSystem>protected boolean exists(Path path)
exists in class org.mule.extension.file.common.api.command.FileCommand<LocalFileSystem>protected void doMkDirs(Path directoryPath)
doMkDirs in class org.mule.extension.file.common.api.command.FileCommand<LocalFileSystem>directoryPath - a Path pointing to the directory you want to createCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.