objWherePath

Available for: Content Management Server

Task: This procedure lists the IDs of all files that can be found in the specified path, i. e. files whose path begins with the path of the specified file. The result can be restricted to particular file types and formats.

Additional information: The command only returns files that have an ID which is not the case with implicit mirror files (created automatically by the system).

Syntax:

objWherePath idOrPath {parameter value}

Function parameters:

  • parameter is one of the following optional values:

    • objTypes: determines that value contains a list of file types to which the result list is to be restricted.
    • objClasses: determines that value contains a list of file formats to which the result list is to be restricted.
  • value contains the value of the respective parameter.

Additional information: it is possible but makes no sense to specify both parameters since they are combined with AND and the file format already determines the file type. If objClasses is specified, implicit mirror files are not taken into account.

Return value if successful: The list of the IDs of the files contained in the specified path and matching the specified parameter values.

Necessary permissions: Only files are listed to which the user has read access.

Example:

CM>objWherePath /internet objClasses {publication}
2108 2116 2124