Available for: Content Management Server
Task: The procedure copies a file into a folder. If the file being copied is a folder, its files will not be copied.
Syntax:
cp sourceObjIdOrPath destObjIdOrPath
Function parameters:
sourceObjIdOrPath
is the ID of the source
file or its path. The path must be absolute, i.e. start with a slash.destobjIdOrPath
is the ID of the target
folder or its path. The path must be absolute, i.e. start with a
slash.Return value if successful: none
Necessary permissions: The user must have read permission for the source files and have permission to create files in the target folder.
Example:
CM>cp /internet/presse /resources