list_of_filegroups#

caput.pipeline.tasklib.io.list_of_filegroups(groups)[source]#

Process a file group/groups.

Parameters:
groupsdict[str, PathLike] | list[dict[str, PathLike]]

Dicts should contain keys ‘files’: An iterable with file path or glob pattern strings, ‘tag’: the group tag str

Returns:
file_listlist[PathLike]

The input groups. Any glob patterns in the ‘files’ list will be flattened to file path strings.

Raises:
CaputConfigError

If groups has the wrong format.