Launches the Copy utility, which copies files either on a single machine or between machines.
token identifies the token used to stop the utility or to get its status. If you do not specify a token, one is generated and returned when you start the utility.
fromHostID is a unique identifier for the host from which you are copying.
toHostID is a unique identifier for the host to which you are copying.
sourcePath is a string representing the file, wildcard, or directory to be copied. A sourcePath must start with an absolute path, such as C:\ or /. A sourcePath can contain . or .. as directory names, and expands * and ? wildcards. Note the following:
You cannot use the wildcard expressions .*, .?, or ..* as directory or file names.
Bracket wildcards, such as file[123].txt, are not supported.
destinationPath is the full path to the destination file or directory. destinationPath must be an absolute path, and no wildcards are allowed.
The destination directory must exist, unless the parent of the destination already exists and you are copying only one thing.
recursive, when true, indicates that the Copy utility recursively copies any directories that match the wildcard.
If recursive is false, the Copy utility does not copy directories, even if they match the wildcard. Instead, it creates intermediate directories required to place the copied files at the destination path.
Throws:
Returns: