find_files#

neophile.scanner.util.find_files(root, wanted_names)#

Scan a tree of files for files of a given set of names.

Files in a directory named “tests” under the root directory will be ignored.

Parameters:
  • root (Path) – The root from which to begin the search.

  • wanted_names (set[str]) – The file names to search for.

Returns:

List of matching files.

Return type:

list of pathlib.Path