listSubtree

Available for: Content Management Server

Task: The procedure returns the IDs of all files which are located in the hierarchy branch of a folder, including the folder itself.

Syntax:

listSubtree objIdOrPath

Function parameters:

  • objIdOrPath is the ID of the folder or its path. The path must be absolute, i.e. start with a slash.

Return value if successful: List of file IDs

Necessary permissions: The user must have the permissionRead permission for the folder. Only the IDs of the files for which the user has permissionRead permission will be returned.

Example:

CM>listSubtree /
2001 2050 2006