libb.get_dir_match

get_dir_match(dir_pattern, thedate=None)[source]

Get paths of existing files matching each glob pattern.

Filters zero-size files and returns warnings for missing patterns.

Parameters:
  • dir_pattern – List of (directory, pattern) tuples.

  • thedate – Optional date to append to patterns.

Returns:

Tuple of (results list of Path objects, warnings list of strings).

Return type:

tuple[list[Path], list[str]]

See also

See tests/test_dir.py for usage examples.