find_files

astro_metadata_translator.file_helpers.find_files(files: Iterable[ResourcePathExpression], regex: str) list[ResourcePath]

Find files for processing.

Parameters:
filesiterable of lsst.resources.ResourcePathExpression

The files or directories from which the headers are to be read.

regexstr

Regular expression string used to filter files when a directory is scanned.

Returns:
found_fileslist of lsst.resources.ResourcePath

The files that were found.