public class CopyCommand extends Object implements Command
| Modifier and Type | Field and Description |
|---|---|
protected Path |
dst |
protected PathFilter |
filter |
protected Path |
prefix |
protected Path |
src |
| Constructor and Description |
|---|
CopyCommand(Path src,
Path dst)
Constructor for copy command.
|
CopyCommand(Path src,
Path dst,
PathFilter filter) |
CopyCommand(Path src,
Path dst,
Path prefix,
PathFilter filter) |
| Modifier and Type | Method and Description |
|---|---|
void |
exec(CommandContext ctx) |
String |
toString() |
String |
toString(CommandContext ctx) |
protected final PathFilter filter
public CopyCommand(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 CopyCommand(Path src, Path dst, PathFilter filter)
public CopyCommand(Path src, Path dst, Path prefix, PathFilter filter)
public void exec(CommandContext ctx) throws IOException
exec in interface CommandIOExceptionpublic String toString(CommandContext ctx)
Copyright © 2015 Nuxeo SA. All rights reserved.