subdirectory_search
SUBDIRLIST(output_var dir)
.. note:: This is a macro, and so does not introduce a new scope.
This macro is used to get the name of all the subdirectories of a directory, inspired by this
Parameters
| Name | Type | Description |
|---|---|---|
output_var | list[string] | Output variable in which the list of subdirectory names is stored. |
dir | string | Path to the directory |
SUBDIRLIST_EXCLUDE(output_var dir excluded_patterns)
.. note:: This is a macro, and so does not introduce a new scope.
This macro can be used to create a filtered list, by selecting patterns to exclude some subdirectories.
Parameters
| Name | Type | Description |
|---|---|---|
output_var | list[string] | Output variable in which the list of subdirectory names is stored. |
dir | string | Path to the directory |
excluded_patterns | list[string] | Patterns to exclude subdirectories |