folder_traverse
- jwst.stpipe.utilities.folder_traverse(folder_path, basename_regex='.+', path_exclude_regex='^$')[source]
Traverse folder and generate full file paths for each file found.
- Parameters:
- folder_pathstr
The folder to traverse
- basename_regexstr
Regular expression that must match the
basenamepart of the file path.- path_exclude_regexstr
Regular expression to exclude a path.
- Yields:
- file_pathstr
The full path to the next file