find_files#

astro_metadata_translator.file_helpers.find_files(files, regex)#

Find files for processing.

Parameters:
  • files (iterable of lsst.resources.ResourcePathExpression) – The files or directories from which the headers are to be read.

  • regex (str) – Regular expression string used to filter files when a directory is scanned.

Returns:

found_files – The files that were found.

Return type:

list of lsst.resources.ResourcePath