METHOD GET FOLDERS
METHOD GET FOLDERS ( arrNames {; filter}{; *} )
| Parameter | Type | Description | |
|---|---|---|---|
| arrNames | Text array | ← | Array of Home page folder names | 
| filter | Text | → | Name filter | 
| * | Operator | → | If passed = command applies to host database when executed from a component (parameter ignored outside of this context) | 
Description
The METHOD GET FOLDERS command returns, in the arrNames array, the names of folders created on the Home page of the 4D Explorer:

Since folder names must be unique, the hierarchy is not returned in this array.
You can limit this list of folders by passing a comparison string in the filter parameter: in this case, only folders whose names match the filter are returned. You can use the @ character in order to specify "starts with", "ends with" or "contains" type filters. If you pass an empty string, the filter parameter is ignored.
If the command is executed from a component, it returns by default the paths of the component methods. If you pass the * parameter, the array contains the paths of the methods of the host database.
See also
Properties
| Command number | 1206 | 
| Thread safe | ✗ |