filefisher.FileFinder.find_single_file

filefisher.FileFinder.find_single_file#

FileFinder.find_single_file(keys=None, **keys_kwargs)#

find exactly one file in the file system using the file and path pattern

Parameters:
  • keys (dict) – Dictionary containing keys to create the search pattern.

  • **keys_kwargs ({key: indexer, …}, optional) – The keyword arguments form of keys. When the same key is passed in keys and keys_kwargs the latter takes priority.

Notes

Missing keys are replaced with "*".

Raises:

ValueError – if more or less than one file is found.