fileListRecurse
Lists all files in a directory, recursively.
This method is marked as unsafe. It can be disabled in certain environments.
Arguments
path
- The path to the directory to list.filter
- (optional) A glob filter to match files against.
Example
{
"$template": {
"$comment": "The field below will be an array of all files with .json extension in the data directory and its subdirectories",
"test": "{{fileListRecurse('data', }}"
}
}