public class MoveCommand extends Object implements Command
Modifier and Type | Field and Description |
---|---|
protected Path |
dst |
protected PathFilter |
filter |
protected Path |
src |
Constructor and Description |
---|
MoveCommand(Path src,
Path dst)
Constructor for copy command.
|
MoveCommand(Path src,
Path dst,
PathFilter filter) |
Modifier and Type | Method and Description |
---|---|
void |
exec(CommandContext ctx) |
String |
toString() |
String |
toString(CommandContext ctx) |
protected final PathFilter filter
public MoveCommand(Path src, Path dst)
src
- the path relative to the root container. The path will be made absolute if not alreadydst
- the path relative to teh root container of the destination. If it is ending with a slash '/' the
destination path is treated as a directorypublic MoveCommand(Path src, Path dst, PathFilter filter)
public void exec(CommandContext ctx) throws IOException
exec
in interface Command
IOException
public String toString(CommandContext ctx)
Copyright © 2018 Nuxeo. All rights reserved.