Skip to main content

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

NameTypeDescription
output_varlist[string]Output variable in which the list of subdirectory names is stored.
dirstringPath 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

NameTypeDescription
output_varlist[string]Output variable in which the list of subdirectory names is stored.
dirstringPath to the directory
excluded_patternslist[string]Patterns to exclude subdirectories