public class CopyCommand extends Object implements Command
Constructor and Description |
---|
CopyCommand(Path src,
Path dst)
Constructor for copy command.
|
CopyCommand(Path src,
Path dst,
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 void exec(CommandContext ctx) throws IOException
exec
in interface Command
IOException
public String toString(CommandContext ctx)
Copyright © 2011 Nuxeo SA. All Rights Reserved.