list_or_glob#
- caput.pipeline.tasklib.io.list_or_glob(files)[source]#
Take in a list of lists/glob patterns of filenames.
- Parameters:
- files
PathLike|Sequence[PathLike] A path or glob pattern (e.g. /my/data/*.h5) or a list of those
- files
- Returns:
- file_list
list[PathLike] The input file list. Any glob patterns will be flattened to file path string lists.
- file_list
- Raises:
CaputConfigErrorIf files has the wrong type or if it refers to a file that doesn’t exist.