libb.load_files

load_files(directory, pattern='*', thedate=None)[source]

Load file contents from directory matching pattern.

Parameters:
  • directory (str) – Directory to search.

  • pattern (str) – Glob pattern to match files.

  • thedate – Optional date to append to pattern.

Yields:

File contents as strings.

See also

See tests/test_dir.py for usage examples.