CopyResource Method
Copies a resource.
Syntax
public String copyResource(String fromResource, String toResourcePath);
Remarks
This method copies the resource FromResource to a new path ToResourcePath, and returns the Id of the newly-copied resource.
FromResource must be a path, an Id-based relative path, or a resource Id. ToResourcePath must be a path or an Id-based relative path (it must always end with the desired name of the file/folder resource being copied).
The AllowCopySharedFolders configuration setting must be enabled before calling this method in order to copy shared resources.
The RenameIfExists configuration setting may be enabled before calling this method to have the server automatically resolve naming conflicts.