diive.search_files

diive.search_files(searchdirs, pattern)[source]

Search folders and their subfolders for files matching a pattern.

Parameters:
  • searchdirs (str) – Folder or list of folders to search.

  • pattern (str) – Filename pattern in fnmatch syntax, e.g. '*.csv'.

Return type:

list

Returns:

Sorted list of Path objects of the matching files.